Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- if ((a != b && b != c && a != c))
- Console.WriteLine("different numbers");
- else
- {
- if (a == b && b == c && a == c)
- Console.WriteLine("all equal");
- else
- {
- if ((a == b) || (a == c) || (b == c))
- Console.WriteLine("only two are equal");
- }
- }
Add Comment
Please, Sign In to add comment