subject

Ask the user how many numbers for which they want to calculate the sum. Using a for loop, prompt the user to enter that many numbers, one-by-one, keeping track of the sum. At the end, after the user entered all numbers, output the sum. Create a variable and assign it the value of 0
Prompt the user for how many numbers they have
With a for loop, set it to repeat enough times to get all their values
Prompt the user for a number
Add that number to the variable that started as 0
Output to the user, the sum of all values

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 06:00
50 on a scale of one to ten, how cute is this dog? (for a science project i need data)
Answers: 2
question
Advanced Placement (AP), 25.06.2019 19:30
What did louis xiv do that create absolute monarchies?
Answers: 1
question
Advanced Placement (AP), 25.06.2019 21:30
Indicates a bal of .05 or higher. a. loss of judgment b. altered mood c. weakened vision d. having trouble steering
Answers: 1
question
Advanced Placement (AP), 26.06.2019 05:30
Coal combustion produces which of the following waste products? i. tar ii. methane iii. electricity i only ii only i and ii ii and iii i, ii, and iii
Answers: 1
You know the right answer?
Ask the user how many numbers for which they want to calculate the sum. Using a for loop, prompt the...
Questions