Computer Science, asked by priyanimmaluri3586, 11 months ago

Write a example of comparison operators.

Answers

Answered by ammumisty
1

Answer:

Comparison Operator Name

Symbol

<= less than or equal to

>= greater than or equal to

!~ does not contain

~ string comparison

Answered by Anonymous
0

Comparison operators are those operators that compare values and then return true or false. Some of the comparison operators are as follows:

  • Less than ( < )

If the value on the left is less than the value on the right, then this operator returns true otherwise false.

  • Greater than ( > )

If the value on the left is greater than the value on the right, then this operator returns true otherwise false.

  • Less than or equal to ( < = )

If the value on the left is less than or equal to the value on the right, then this operator returns true otherwise false.

Similar questions