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 Geologists locate the epicenter of an earthquake?
Round 9.42 to one decimal place
the Internet may best be compared to a/an
The ability to cause change is defined as: A) force and is measured in newtons(N) B) power and is measured in watts C) energy and is measured in joules (J) D) i
1000 jumps for 3 hours ___ per hour
what happens to the gas particles in an an inflated ball when it gets a hole? why?
Who fulfills the witches' prophecy of not being "born of a woman"?
What is 5/6 divided by 1/9
Why does Taiwan have to enter athletes into the Olympic games under the title "Chinese Taipei"?
Which of the following is not true about Galileo? a. He was such a brilliant mathematician that he became a professor of mathematics at the age of 25. b. He dev