Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. multiplyTotal   = 1
  2. AdditionTotal   = 0
  3. inputVar        = int(input("Enter positive integers, than 0 to end input.\n"))
  4.  
  5. while (inputVar != 0):
  6.     if (inputVar > 25):
  7.         multiplyTotal *= inputVar
  8.     else:
  9.         AdditionTotal += inputVar
  10.     inputVar = int(input())
  11.  
  12. print("Multiply Total: " + str(multiplyTotal))
  13. print("Addition Total: " + str(AdditionTotal) + "\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement