Advertisement
T-D-K

Untitled

May 7th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. n = int(input())
  2. s = 0
  3. while n > 0:
  4.     if (n > 1000):
  5.         s = s + 0.95 * n
  6.     else:
  7.         s = s + n
  8.     n = int(input())
  9. print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement