Advertisement
barabar4e

max_number

Oct 9th, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import sys
  2.  
  3. max_number = - sys.maxsize
  4.  
  5. while True:
  6.     current_number = input()
  7.     if current_number == 'Stop':
  8.         break
  9.  
  10.     current_number = int(current_number)
  11.  
  12.     if current_number >= max_number:
  13.         max_number = current_number
  14.  
  15. print(f'{max_number}')
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement