4.2 Code Practice: Question 2
JenniferMusa

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.
Sample run:
Enter a number: 1
Enter a number: 41
Enter a number: 36
Enter a number: 25

Sum: 103
Numbers Entered: 4

You are viewing a single comment. View All
JenniferMusa

@Vandesm14
sum = 0
c = 0
while(sum<100):
sum = sum + x
print("sum:"+ str(sum))
print("Numbers entered: " +str(c))