Relational Operator
Relational Operator
These useful operators permit the developer to compare two values and make decisions based upon the result of the comparison.
Example: int a=20;
These useful operators permit the developer to compare two values and make decisions based upon the result of the comparison.
> | Greater than |
>= | Grater than equals to |
< | Less than |
<= | Less than equals to |
== | Equals to |
!= | Not equals to |
Example: int a=20;
a>5 | True |
a>25 | False |
a>20 | False |
a<=20 | True |
a<25 | True |
a<20 | False |
a<=20 | True |
a==20 | True |
a==10 | False |
a!=20 | False |
a!=10 | True |
Comments
Post a Comment