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

Bobby is designing a garden in the shape of a trapezoid that is split into three parts: two triangular flower beds, and a rectangular section of grass. Setting
According to Article 1, Section 7, how does a bill become a law?
Explain the logistics of product delivery. Describe the ins-and-outs of importing and exporting your products. What are the most critical components of delivery
(Sat prep) find the value of x, 65 degrees and 75 degrees isosceles triangle.
(MC)What resulted from the Supreme Court's ruling in Regents of the University of California v. Bakke (1978)? Hiring systems that gave preference to minorities
qué tapa de conflicto es el que ocuparon en el cuento El puente de los hermanos​
What led to the Qing dynasty's decline in China during the nineteenth century?
what crusade did christians capture jerusalem
1. What should be added to the difference of 35.06 and 2.098 to get 40.00?​
What is the result when 3x4 + 17x3 + 26x2 + 10x + 12 is divided by 3 + 3? If there is a remainder, express the result in the form q(x) + b(2)