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), 25.06.2019 02:00
98 points! include an answer and in advance!
Answers: 1
question
Advanced Placement (AP), 26.06.2019 03:00
To earn college credit for ap courses that students take in high school they must
Answers: 2
question
Advanced Placement (AP), 27.06.2019 04:30
To what condition is a stable family life, strong focus on education, and assimilation into the mainstream culture linked for minorities? a.mental well-being b.interracial marriage c.healthier relationships d.economic success
Answers: 1
question
Advanced Placement (AP), 27.06.2019 06:00
The penalties for a person's second dui conviction include installation of an ignition interlock device for a. no more than two continuous years b. no more than nine continuous months c. no less than one continuous year d. a and c
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
Mathematics, 08.01.2020 17:31
Questions on the website: 13722363