Advanced Placement (AP)

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

answer
Answers: 2

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 23.06.2019 06:30, dontcareanyonemo
Which term defines a power shared by state and federal governments? concurrent expressed implied reserved
Answers: 1
image
Advanced Placement (AP), 25.06.2019 23:00, andii1101
Which of the following best explains why the game of economics does not have a single goal
Answers: 1
image
Advanced Placement (AP), 26.06.2019 03:30, ovoxotas
Question 4 which was a foundation of the industrial revolution? a) large states held huge supplies of raw materials. b) coal replaced wood as the primary source of fuel. c) road infrastructure replaced waterways for transport. d) mercantilist policies drove down the price of goods. question 7 which was not a government response to the socialist challenges? a) establishing universal suffrage to all classes b) introducing medical insurance and pensions c) prohibiting underground employment for women d) restricting child labor for children under ten years old question 9 which was a cause of the boer war? a) movement and settlement of bantu peoples into afrikaner-populated states b) independence of northern afrikaner territories from british colonial authority c) evacuation of most afrikaner people out of south africa and back into europe d) british reconstitution of afrikaner-held territories into the union of south africa
Answers: 3
image
Advanced Placement (AP), 26.06.2019 16:30, Theresab2021
What is a biogrochemical flow chart
Answers: 1
Do you know the correct answer?
Ask the user how many numbers for which they want to calculate the sum. Using a for loop, prompt the...

Questions in other subjects:

Konu
Mathematics, 03.11.2020 22:20