Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inp = int(input())
- maxnum = -20000
- minnum = 20000
- while inp != 0:
- if inp > maxnum:
- maxnum = inp
- if inp < minnum:
- minnum = inp
- inp = int(input())
- print(maxnum - minnum)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement