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

the famous irrational numbers
to find the area of a rectangle, is it supposed to go area=lxw?
The mean of 20 numbers is 18. If 3 is added to each of the first ten numbers, find the mean of the new set of 20 numbers.
I need help with the following three physics problems please!
60% of what number is 72?
What Are the Different English Words that Don't Rhyme?
write an equation for each condition 1) The line with a slope of 7 and a y-intercept of -1( in slope-intercept form) 2) The line that passes through (1,-5) and
how many days are really in a year
Is it true that there a little man on the moon ? is it true
what is airbrushing? could you help me?