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

Which of the following lists the branches of the u.s. economy in the order in which they evolved? a. agriculture, manufacturing, service, technology b. indust
What did the great compromise accomplish??
Which is bigger 1/6 or 3/11?
Can someone help me on the surface area of this shape please
A first conviction for dui will result in your license being automatically revoked for how many days
How can describe electromagnetic waves with mechanical waves?
The average value of the function g(x) = e^(x^2) on the closed interval [0, pi] is?
In lines 47–51 of “The Seafarer,” the speaker says: “And all these admonish that willing mind.” Select the best definition for admonish.a.indulgec.warnb.pursued
Please help!!!!!!!!!!!! Each Letter is it own question -Procedure A.Suppose you are presented with Plant A of the species you are studying. It has
If georgina travels 355 km in 7 hrs, how far will she travel in 8.5 hrs at the same ratio.