Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddTotal = 0
- MultipleTotal = 1
- UserInput = int(input("Enter numbers above zero then enter 0\n"))
- while (UserInput != 0):
- if (UserInput > 25):
- MultipleTotal = MultipleTotal * UserInput
- else:
- AddTotal = AddTotal + UserInput
- UserInput = int(input())
- print("AddTotal: " + str(AddTotal) + "\n" + "MultipleTotal: " + str(MultipleTotal))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement