Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- amount = int(input("How many numbers would you like to add? "))
- sum = 0
- for i in range(1, amount + 1):
- print(sum)
- number = int(input("Enter number " + str(i) + ".: "))
- sum = sum + number
- print("Sum of given numbers is " + str(sum))
Add Comment
Please, Sign In to add comment