Advertisement
JangoBingoBango

Untitled

Mar 31st, 2020
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. AddTotal = 0
  2. MultipleTotal = 1
  3. UserInput = int(input("Enter numbers above zero then enter 0\n"))
  4. while (UserInput != 0):
  5.     if (UserInput > 25):
  6.         MultipleTotal = MultipleTotal * UserInput
  7.     else:
  8.         AddTotal = AddTotal + UserInput
  9.     UserInput = int(input())
  10.  
  11. print("AddTotal: " + str(AddTotal) + "\n" + "MultipleTotal: " + str(MultipleTotal))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement