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

Gened given that 19 th century unitarians rejected the doctrine of original sin (that man is born a sinner), their drive for social reform was largely from a be
At 27.0 °C a gas has a pressure of 6.00 atm. What will the pressure be at 150.0 °C?
Help and show explanation please
PLEASE HELPP Identify the growth factor for the following exponential function: y= 2.3(1.32)* A. 2.3 B. 1.32 C. X D. 32%
Between Australia and Indonesia which would be the better country to live in based on their system of government and explain why.
Solve the equation by factoring. 2x^2 + 6x = -4​
Find AC. brainly is forcing me to make this longer but its just that
Read the excerpt from Hamlet. Hamlet: No, faith, not a jot; but to follow him thither with modesty enough, and likelihood to lead it; as thus: Alexander died, A
please help mehhhh quick​
The number of cable TV systems recently decreased from 20, 000 to 8.500 Find the percent of decrease Round to the nearest tenth of a percent. A: 8.1% B: 12.5%