Write a program that inputs numbers and keeps a running sum. When the sum is greater than 100, output the sum as well as the count of how many numbers were entered.
Answers
Answered by
1
Answer:
u = float(input("Enter a number"))
c = 1
while (u <= 100):
n = float(input("Enter a number"))
u = u + n
c = c + 1
print ("Sum: " + str (u))
if (u > 100):
print ("Numbers Entered: " + str(c))
Similar questions