Comparison Operators
Comparison operators: ==, !=, <, >, <=, >=.
int a = 5, b = 10;Console.WriteLine(a == b); // FalseConsole.WriteLine(a != b); // TrueConsole.WriteLine(a < b); // TrueConsole.WriteLine(a > b); // FalseRun the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”FalseTrueTrueFalse