Search This Blog

Relational operators in programming

 A programming language usually uses the following relational operators:
 - Equal: (x == y) returns true if x equals y, otherwise false.
 - Not Equal: (x != y) returns true if x is not equal to y, otherwise false.
 - Less than: ( x < y ) returns true if x is less than y, otherwise false
 - Greater than: ( x > y ) return true if x is greater than y, otherwise false
 - Less than or equal to: ( x <= y ): returns true if x is less than or equal to y, otherwise false
 - Greater than or equal to ( x >= y ): returns true if x is greater than or equal to y, otherwise false
Share:

No comments:

Blog Archive

Powered by Blogger.

Blog Archive

Recent Posts

Pages