Advertisement
mjc65

Example 1-46. Using the equality operator

Jun 23rd, 2020
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.13 KB | None | 0 0
  1. int x = 42;
  2. int y = 1;
  3. int z = 42;
  4.  
  5. Console.WriteLine(x == y); // Displays false
  6. Console.WriteLine(x == z); // Displays true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement