The C# comparison operator is used to compare two operands. It returns true or false based on comparison. The complete list of comparison operators are listed in a table. Consider x is a variable and the value assigned the x=2 then, Operator Name Examples < Less than x<5 (returns true) > Greater than x>5 (returns false) <= Less than equal to x<=2 (returns true) >= Greater than equal to x>=2 (returns true) == Equal equal to x==2 (returns true) != Not equal to x!=2 (returns false) Examples: using System; namespace Comparison_Operator { class Program { static void Main( string [] args) { int num1, num2; //Accepting two inputs from the user Console .Write( "Enter first number\t" ); num1 = Convert .T...
Best course available here