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

Ronny, Celina, Jack, and Michelle together placed a total of 20 brownies on a tray. Ronny placed 0.15 of the brownies, Celina placed 3 of the 20 brownies, Jack
How did World War II play a role in the eventual decolonization of Southeast Asia?
what number goes into 66 and 19
Write 165% as a fraction and as a decimal.
What was the outcome of the 1990 Myanmar election? How did the government respond?
A bag contains 3 blue marbles, 9 green marbles and 11 yellow marbles.Twice you draw a marble and replace it. Find p (blue,then green) A.27/529 B.27/23 C.15/259
1. A conservation easement would be best suited to offset which of the following threats to biodiversity? 2. Which of the following stresses would most like
.4. What is the range of the data set? 214 83 106 99 83 155 175
What is the definition of physical fitness?
What is a type of questioning that encourages students to think for themselves?