Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- multiplyTotal = 1
- AdditionTotal = 0
- inputVar = int(input("Enter positive integers, than 0 to end input.\n"))
- while (inputVar != 0):
- if (inputVar > 25):
- multiplyTotal *= inputVar
- else:
- AdditionTotal += inputVar
- inputVar = int(input())
- print("Multiply Total: " + str(multiplyTotal))
- print("Addition Total: " + str(AdditionTotal) + "\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement