Advertisement
Nickzouk

PROTOI ARITHMOI

Nov 12th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _12._11._19trith
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. Console.WriteLine(" DOSE 3 ARITHMOUS ");
  10. int a1, a2, a3;
  11. a1 = Convert.ToInt32(Console.ReadLine());
  12. a2 = Convert.ToInt32(Console.ReadLine());
  13. a3 = Convert.ToInt32(Console.ReadLine());
  14.  
  15. if (a1 > a2 && a1 > a3)
  16. {
  17. Console.WriteLine(" o {0} EINAI O MEGALITEROS", a1);
  18. }
  19. else if (a2 > a1 && a2 > a3)
  20. {
  21. Console.WriteLine(" O {0} EINAI MEGALITEROS", a2);
  22. }
  23. else if ( a3 > a2 && a3 > a1)
  24. {
  25. Console.WriteLine(" O {0} EINAI MEGALITEROS", a3);
  26. }
  27. else
  28. {
  29. Console.WriteLine(" OI ARITHMOI EINAI ISOI");
  30. }
  31.  
  32.  
  33. }
  34.  
  35.  
  36.  
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement