Advertisement
Spocoman

01. Largest Of Three Numbers

Jan 12th, 2022
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import sys
  2.  
  3. max = -sys.maxsize
  4. for i in range(3):
  5.     num = int(input())
  6.     if num > max:
  7.         max = num
  8. print(max)
  9.  
  10. Решение с max():
  11.  
  12. a = int(input())
  13. b = int(input())
  14. c = int(input())
  15. print(max(a, b, c))
  16.  
  17. Taрикатско решение:)
  18.  
  19. print(max(int(input()), int(input()), int(input())))
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement