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

How do I round 35.26 to the nearest whole number
The word percent (%) means " divided by _________?"
what 2 numbers should be placed in the blanks below so that the difference between consecutive numbers is the same?      17,_,_,41
What two factors affect gravity and how?
What was Memorial Day's called previously?
log7 1/49=-x-2 hate math so bad it won't even let me sleep
what 2 numbers should be placed in the blanks below so that the difference between consecutive numbers is the same?      17,_,_,41
A restaurant offers 12 types of entrees, 6 types of appetizers, and 4 types of rice.How many meals of appetizer, entree, and rice are there?
Explain Newton's third law in your own words.
1/x-1 - 3/x+2 = 1/4 solve to find x