Advertisement
veronikaaa86

06. Max Number

Jul 30th, 2023
1,027
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. import sys
  2.  
  3. input_line = input()
  4.  
  5. max_num = -sys.maxsize
  6. while input_line != "Stop":
  7.     current_num = int(input_line)
  8.  
  9.     if current_num > max_num:
  10.         max_num = current_num
  11.  
  12.     input_line = input()
  13.  
  14. print(max_num)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement