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

SOMEONE PLEASE JUST ANSWER THIS FOR BRAINLIEST What is the greatest common factor of 15x^3y^2 and 20x^4y^4?
Water is flowing from a major broken water main at the intersection of two streets. The resulting puddle of water is circular and the radius r of the puddle
how many cups of sorbet are used in. 8 cups of punch sorbet is 15%
How to set the equations
15 POINTS HELP PLEASE! Complete the table and pattern. Determine the common difference. Write the explicit rule.
what is the product of 9.8 x 10 to the power of 3 and 8.8 x 10 to the power of 6 expressed in scientific notation
What would give people the right to revolt against their government ?
A 22.4g sample of a substance was added to a graduated cylinder. It caused an 18.3 mL change in the volume of the water in the cylinder. What is the density of
what are 3 facts about clothing styles associated with popular culture? This is from AP Human Geography class
In what type of cells is smooth er abundant