Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int c = int.Parse(Console.ReadLine());
- if (a > b && a > c)
- {
- Console.WriteLine("{0} {1}", b, c);
- }
- else if (b > a && b > c)
- {
- Console.WriteLine("{0} {1}", a, c);
- }
- else if (c > a && c > b)
- {
- Console.WriteLine("{0} {1}", a, b);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement