desislava_topuzakova

07. Sum Numbers

Apr 24th, 2021
1,287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. n = int(input())
  2. sum = 0
  3. # за всяко едно число от 1 до n
  4. for number in range(1, n + 1):
  5.     value = int(input())
  6.     sum += value
  7.  
  8. print(sum)
Advertisement
Add Comment
Please, Sign In to add comment