Advertisement
Guest User

Untitled

a guest
Jan 25th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. using System;
  2. using System.Numerics;
  3.  
  4. class PriceChangeAlert
  5. {
  6. static void Main()
  7. {
  8. int a = int.Parse(Console.ReadLine());
  9. int b = int.Parse(Console.ReadLine());
  10. int c = int.Parse(Console.ReadLine());
  11. Console.WriteLine(GetMax(a,b,c));
  12. }
  13. private static int GetMax(int a , int b, int c)
  14. {
  15. int max = int.MinValue;
  16.  
  17. if (a >= b && a >= c)
  18. {
  19. max = a;
  20. }
  21. else if (b >= a && b >= c)
  22. {
  23. max = b;
  24. }
  25. else if (c >= a && c >= b)
  26. {
  27. max = c;
  28. }
  29. return max;
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement