Advertisement
barabar4e

min_number

Oct 9th, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import sys
  2.  
  3. min_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.     if current_number < min_number:
  12.         min_number = current_number
  13.  
  14. print(f'{min_number}')
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement