Relational Operators in C#
Relational operators used in C# for perform decision base manipulations.
comparing two numbers and deciding the greater number is done by Relational operator.Statement those containing relational operator are called relational expressions.
The value returned after evaluating a relational expression is either true or false.
Given bellow is list of relational Operators that use in C#:
1. < Is less than
2. <= Is less than or equal to
3. > Is Greater than
4. >= Is Greater than or equal to
4. == Is equal to
6. != Is not equal
Lets use these relational operator in a program
public ststic void Main()
OUPTUT OF THIS PROGRAM WILL BE:
y!=z is true
y==x+z is False
Press any key to continue...