Guest User

Untitled

a guest
Jan 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. int a = int.Parse(Console.ReadLine());
  2. int b = int.Parse(Console.ReadLine());
  3. int c = int.Parse(Console.ReadLine());
  4.  
  5. if ((a != b && b != c && a != c))
  6. Console.WriteLine("different numbers");
  7. else
  8. {
  9. if (a == b && b == c && a == c)
  10. Console.WriteLine("all equal");
  11. else
  12. {
  13. if ((a == b) || (a == c) || (b == c))
  14. Console.WriteLine("only two are equal");
  15. }
  16. }
Add Comment
Please, Sign In to add comment