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

An individual is about to be discharged to home following a brief hospitalization for substance abuse. The family asks the OT what they should do the first week
Let z0 be a complex number with polar coordinates r0, theta and Cartesian coordinates x0, y0. Determine expression for the Cartesian coordinates of the followin
Fiscal federalism can be classified in what three major program areas? a) Defense, Education, and Healthcare b) Transportation, Housing, and Agriculture c) Welf
You deposit $1000 each year into an account earning 5% interest compounded annually. How much will you have in the account in 30 years?
Choose the sentence that has an ERROR in subject-verb agreement A The lands near the South Pole are very cold. B The football players, except for John, is warm
Why do you have to put parenthesis around IIFE?
Name 5 ways to stay active in KD after graduation?
Delay or failure to report client abuse may jeopardize a students status in the psych tech programa) True b) False
Decubitus ulcer is most often occur? 1) Due to prolonged pressure on the skin 2) Due to poor blood circulation 3) Due to bacterial infection 4) Due to excessive
probability of a month with a prime number of letters in its name is randomly chosen from the months after April.