what is relational operator
Answers
Answered by
10
Heya !!
Relational Operators are those operators that establish a relation between two terms. In other words, they are used to compare two things. In any coding language, or better, say in terms of computer, relational operators are mostly used to relate / compare two numbers. The most commonly used relational operators are:
- Greater Than (>) Operator: It turns true if the first number is greater than the second number.
- Lesser Than (>) Operator: It turns true if the first number is lesser than the second number.
- Equal To (=) Operator: It turns true if both the values are equal to each-other.
- Greater Than Or Equal To (≥) Operator: It turns true if the first number is greater than or equal to the second number.
- Lesser Than Or Equal To (≤) Operator: It turns true if the first number is lesser than or equal to the second number.
Hope it helps !!
Similar questions