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

What is another word for nation
How to make w the subject in the equation of w\m=6
Which two words have a similar denotation to the word immunized
How many degrees is -pi/8 radians?
why delegate authority and not responsibility​
Help please I’m stuck
How many points of intersection does this system have? y = 3 x minus 4. Negative 3 x + y = 4.
find p (2) when p = 15 (prob & stats)
Explain why a purine base (Adenine & Guanine) must be paired with a pyrimidine base (Thymine &Cytosine)​
What are three characteristics of an effective speaker or communicator?