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