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 16:50, makaylahunt
Often, leaders must be honest, even when what they have to say is not appealing or positive. explain why honesty is an important leadership quality.
Answers: 1
image
Advanced Placement (AP), 23.06.2019 17:00, MPSLondon
What are the main functions of the human skeleton? a exchange of gases b support and movement c sensing the environment d digestion and excretion
Answers: 2
image
Advanced Placement (AP), 23.06.2019 20:00, almighty3120
Ill mark brainliest to whoever answers first correctly hurry! a vehicle's is the entire piece of plastic that spans the front end of the passenger cabin. a. instrument panel b. control panel c. dashboard d. frontboard
Answers: 1
image
Advanced Placement (AP), 23.06.2019 20:00, sarah7484
Who wants brainliest and free 15 points? answer this correctly and i will do so : ) if you imagine your steering wheel as a clock, which of the following is the ideal way to position your hands on the steering wheel? a. one hand on 6 o'clock b. one hand on 12 o'clock c. 10 and 2 o'clock d. 9 and 3 o'clock
Answers: 2
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, 04.10.2021 07:10
Konu
Mathematics, 04.10.2021 07:10