Advertisement
Spocoman

03. Sum Numbers

Dec 27th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. num = int(input())
  2. sum = 0
  3.  
  4. while sum < num:
  5.     sum += int(input())
  6.  
  7. print(sum)
  8.  
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement