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

Karen's father is an executive for a major international corporation and has been transferred to various countries over the years. With each move, Karen is enro
Matching Vocabulary -someone who raveled west to start a new life -covered wagon popularly used by emigrants traveling to the American West -a zone where no sta
Energy used to fuel biological processes comes from the breakdown of _____. A. Carbohydrates B. Fats C. Proteins D. ATP
need some help with my fcredit recovery ​
what is a nonmetallic mineral resource
Together, teammates Pedro and Ricky got 2694 base hits last season. Pedro had 284 more hits than Ricky. How many hits did each player​ have?
A ________ provides information to coordinate all of the business processes that deal with customers in sales, marketing, and service to optimize revenue, custo
I need a process (1) is the right answer Thx~
The Stibbe Construction Company switched from the completed contract method to the percentage-of-completion method of accounting for its long-term construction
willhelmina has 8.3 ounces of peanut butter if she makes 5 sandwiches with an equal amount of peanut butter on each how much peanut butter does she put on each