Last active
November 29, 2017 10:39
-
-
Save luisdeol/99454c6d0bd7af616cbeafdd61c300ae to your computer and use it in GitHub Desktop.
Using C# relational and equality operators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace implement_program_flow | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//C# relational and equality operators | |
const int mySalary = 1000; | |
const int anonSalary = 1500; | |
Console.WriteLine(mySalary < anonSalary); | |
Console.WriteLine(mySalary > anonSalary); | |
Console.WriteLine(mySalary <= anonSalary); | |
Console.WriteLine(mySalary >= anonSalary); | |
Console.WriteLine(mySalary == anonSalary); | |
Console.WriteLine(mySalary != anonSalary); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment