boomer81 boomer81
  • 24-11-2020
  • Computers and Technology
contestada

4.2 Code Practice: Question 1
Can someone help me write the code in python language?

Respuesta :

aburdi aburdi
  • 02-12-2020

Answer:

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

sum = number

c = 1

while (sum<=100):

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

   sum = sum + number

   c = c + 1

print("Sum: " + str(sum))

print("Numbers Entered: " + str(c))

Explanation:

Hope this helps lovely :)

Answer Link

Otras preguntas

Whats the answer for this 4b²+20b+25
How do you do this problem? Solve by factoring or finding square roots. x^2-1=0
What does pie equal
Which of the following is an effect of global warming? a)increased drought b)falling sea levels c)decreased coastal flooding d)glacier
how many neutrons does carbon-14 have?
10 yards<360 inches true or false
ZERO polynominal function of f(x) = x^3 + 4x^2 - 9x - 36
how many neutrons does carbon-14 have?
Robert complained that he had a "ton" of homework. There is a and b (a) Was asking How many pounds is in a ton? Already got that, 2000 lbs (b) What is the prob
if the dimensions of a prism are 9 3 and 15 what is the surface area