Advertisement
Guest User

task

a guest
Oct 30th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. int a = int.Parse(Console.ReadLine());
  8. int b = int.Parse(Console.ReadLine());
  9. int c = int.Parse(Console.ReadLine());
  10.  
  11. if (a > b && a > c)
  12. {
  13. Console.WriteLine("{0} {1}", b, c);
  14. }
  15. else if (b > a && b > c)
  16. {
  17. Console.WriteLine("{0} {1}", a, c);
  18. }
  19. else if (c > a && c > b)
  20. {
  21. Console.WriteLine("{0} {1}", a, b);
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement