When we write program, many time we requirement to comparison of two or more data, in that case we uses relational operators. There are following relational operators as following :
Operators Name
> Greater than
< Less than
= Equals to
>= Greater than equals to
<= Less than equals to
<= Less than equals to
!= Not equals to
The syntax of relational expression as :
<data value 1>Relational operator<data value 2>
Example :
10 >= 5
-50 <= 1
0 != 0
Comments
Post a Comment