vncolella2006 vncolella2006
  • 08-11-2020
  • Computers and Technology
contestada

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.

Respuesta :

Cytokine
Cytokine Cytokine
  • 08-11-2020

total = 0

count = 0

while total < 100:

   num = int(input("Enter a number: "))

   total += num

   count += 1

print("Sum: {}".format(total))

print("Numbers Entered: {}".format(count))

I'm pretty sure this is what you're looking for. Best of luck!

Answer Link

Otras preguntas

name three reason why blood goes to the lungs​
--8 - 2 4 10 y 8 1 re -6 —13
Bacteria colonies can triple in size every 4 days. If you start with 150 bacteria microorganisms, how large would the colony be after 16 days? First, complete t
show that respiratory gaseous exchange in a rabbit occurs at the level of lungs​
4. After Susan finishes her speech, the crowd goes wild. Leo says, The cheering was as wild as that of the crowd at a dramiship badeball cane Spinelli, 155) Wha
Select ALL the correct answers. What was the result of new innovations in the Roaring 20s? it made long-distance relationships easier. e it changed the way peop
What contributed to the formation of the Chinese Nationalist Party? Choose three correct answers. People wanted to return to their traditional Chinese culture.
Which of the following is not an artificial intelligent technology? Speech recognition Text analytics and NLP Computer vision Robotic desktop automation None of
Si se duplica el radio(2) del círculo anterior, el número de veces que aumenta el area del círculo es?
p = 2l+2w show your work; solve for w. subject: math, literal equations