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: 2

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 18:30
Ill give you free brainliest + free points if you answer this drvers ed question correctly! when merging, yield to traffic a. already on the road you're joining b. on your right side only c. if it's going slower than you d. if it's going the same speed as you
Answers: 2
question
Advanced Placement (AP), 23.06.2019 20:20
What is the top speed in a parking lot? a. 10 mph b. 20 mph c. 25 mph d. 30 mph
Answers: 2
question
Advanced Placement (AP), 24.06.2019 15:00
What best describes the portability characteristic of money?
Answers: 1
question
Advanced Placement (AP), 25.06.2019 03:30
Cigarette manufacturers purposefully add to cigarettes in order to give them a particular flavor. a. cocaine b. carcinogens c. cigarette ashes d. a and b
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
question
Business, 31.12.2020 02:40