Advertisement
dmemsm

Задача 1

Jan 12th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. inp = int(input())
  2. maxnum = -20000
  3. minnum = 20000
  4. while inp != 0:
  5.     if inp > maxnum:
  6.         maxnum = inp
  7.     if inp < minnum:
  8.         minnum = inp
  9.     inp = int(input())
  10.  
  11. print(maxnum - minnum)
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement