Relational Operator

                                              Relational Operator

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>5True
a>25False
a>20False
a<=20True
a<25True
a<20False
a<=20True
a==20True
a==10False
a!=20False
a!=10True

Comments

Popular posts from this blog