Computer Science, asked by reetkaur8405, 4 months ago

5. write the example of four relational operators. ​

Answers

Answered by lovelyamalt
3

Answer:

Operator Description Example

  1. == Checks if the values of two operands are equal or not. If yes, then the condition becomes true. (A == B) is not true.
  2. != Checks if the values of two operands are equal or not. If the values are not equal, then the condition becomes true. (A != B) is true.
  3. > Checks if the value of left operand is greater than the value of right operand. If yes, then the condition becomes true. (A > B) is not true.
  4. < Checks if the value of left operand is less than the value of right operand. If yes, then the condition becomes true. (A < B) is true.
  5. >= Checks if the value of left operand is greater than or equal to the value of right operand. If yes, then the condition becomes true. (A >= B) is not true.
  6. <= Checks if the value of left operand is less than or equal to the value of right operand. If yes, then the condition becomes true. (A <= B) is true.

Similar questions