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

the delegate who created the compromise for the constitution was
answer please please​
what food item should be restricted from a patient with cirrhosis
In Invention of Love, the opening scene of the man in his workshop is O A. heavenly O B. depressing O c. thrilling O D. humorous
how is the caste system structured and why it results in social inequality.
Protein synthesis is the main function of which of the following structures? (A) Nucleus (B) Ribosome (C) Chromosome (D) Mitochondrion (E) Vacuole
8. Which economic systems have the most government control ? Which one has the lea: government control?
One number exceeds another by 18 and their sum is 36.
Use the 95% rule and the fact that the summary statistics come from a distribution that is symmetric and bell-shaped to find an interval that is expected to con
Which theme is revealed both in "Raymond's Run" and "President Cleveland, Where Are You?" A) Sometimes you have to look out for yourself. B) The most i