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 20:00
Distiguish between the benefits of traditional banking and the benefits of online banking
Answers: 2
question
Advanced Placement (AP), 23.06.2019 19:00
Read the scenario below and answer the question that follows. bailey is plagued with sleep problems at least a couple of times a week. she often feels tired at work and doesn't do her best work because she is "just so tired." according to the lesson, it can be said that adults have some of the same problems with sleep that bailey does. a. few b. many c. no d. all
Answers: 1
question
Advanced Placement (AP), 24.06.2019 20:30
This is science by the way which of the following is an example of an environmental pressure a. the air pressure in the atmosphere b. a lake that is gradually running out of water c. a fight between two members of the same species d. breeding between two members of the same species
Answers: 1
question
Advanced Placement (AP), 24.06.2019 23:10
The use of a beat or a rhythm to remember something is
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, 20.11.2020 21:10
question
Chemistry, 20.11.2020 21:10
question
Mathematics, 20.11.2020 21:10
question
Mathematics, 20.11.2020 21:10
Questions on the website: 13722367