Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- s = 0
- while n > 0:
- if (n > 1000):
- s = s + 0.95 * n
- else:
- s = s + n
- n = int(input())
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement