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

If BC = 4 and CD = 27, find AC.
Which of the following is equiangular and equilateral?A. rhombusB. squareC. rectangleD. parallelogram
If BC = 8.3, CD = 6.7, and AD = 11.6, find AB to the nearest tenth.
The biosphere is best described as the regions of Earth that support _______.a.plant lifeb.animal lifec.all lifed.human lifeCan someone help me with this one?
Find all values of theta between 0 and 360 that satisfy cos(theta)=-.73
The movement of deep ocean currents is mainly caused by:?
what's a 7 word for mislead or cheat
Jorge plans to paint a bedroom wall that is shaped like a trapezoid. The bottom edge of the wall is 22.5 feet long, and the top edge of the wall is 9.5 feet lon
Which sentence does not contain any errors in comma usage?   A. The Grand Canyon is just
Which statement most accurately describes the behavior of a catalyst? (A) A catalyst increases the ∆G of a reaction and hence the forward rate. (B) A catalyst