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 Shamsie implying when she writes that C.S. Lewis, a well-known British novelist and academic, was unlikely to have ‘written for’ a girl in Karachi?
give two importance of riddles​
John put 5 identical pairs of white socks and 5 identical pairs of black socks in the dryer. If he reaches in and grabs some socks, what is the LEAST number he
if L|| m, find the value of the missing variables. MUST SHOW WORK TO GET CREDIT!!
Which of the following expressions is in simplified form?
HELP!!! ME ANSWER THIS PLZ.
10 mL = c help plz thank you.
Summarize the problems that Rubí saw when he surveyed the land occupied by Spain after the Treaty of Paris. Which one do you feel was the biggest problem? Why?
Louisburg was called the ___ of North America.
6.6 as a mixed number