desislava_topuzakova

07. Sum Numbers

Mar 1st, 2021
836
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2.  
  3. # за всяко едно число от първото до n-тото
  4.     # прочитам стойност и да я съхранявам
  5. sum = 0
  6. for number in range(1, n + 1):
  7.     value = int(input())
  8.     sum += value
  9.  
  10. print(sum)
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×