kadenhuff2019 kadenhuff2019
  • 12-03-2021
  • Computers and Technology
contestada

logic for a program that allows a user to enter a number and displays the sum of every number from one through the entered number

Respuesta :

berriosgabep60yfw
berriosgabep60yfw berriosgabep60yfw
  • 12-03-2021
num = input("enter number: ")

x = 1
while x <= num:
sum = num + x
print(sum)
x = x + 1
Answer Link

Otras preguntas

Solve: please answer as fast as possible -2 + 6 < 4
what is the midpoint of 0.03 and 0.04
how do you say "It is July 27, 2016" in French?
Why did Jefferson Davis find it necessary to attack Fort Sumter?
verbal expression for 1/8y
what is 30,155-13,876
a map of australia has a scale of 1 cm: 110 km. if the distance between darwin and alice spring is 1444 kilometers, how fa apart are they on the map, to the nea
What's (-1.15)×3.2=? Explain =)
Why is citizen participation essential to the preservation of the us political system
Evaluate the expression when y = 16. 3 + y ÷ 4