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), 22.06.2019 12:10
37. dr. homer slimpson, an economics professor, decided to take a year off from teaching to run a commercial fishing boat in alaska. that year, professor simpson would be officially counted as a) not in the labor force b) employed c) fictionally unemployed d) structurally unemployed
Answers: 2
question
Advanced Placement (AP), 25.06.2019 19:30
Marcy is a very good math student, but she seldom studies for tests. as a result, her grade has dropped this semester. this is an example wasting talent getting distracted allowing others to set goals
Answers: 1
question
Advanced Placement (AP), 26.06.2019 10:00
What might happen if he federal government makes cuts health care spending
Answers: 1
question
Advanced Placement (AP), 27.06.2019 05:30
Which is not an explanation for why new approaches began to emerge in the 1950s and 1960s challenging the dominance of the psychodynamic and behaviorist approach
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, 30.11.2020 21:30
question
Social Studies, 30.11.2020 21:30
question
Mathematics, 30.11.2020 21:30
question
History, 30.11.2020 21:30
Questions on the website: 13722363