Advanced Placement (AP)
Advanced Placement (AP), 25.01.2022 02:40, tasphipps

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), 24.06.2019 04:00, Baby010391
Brian has been working for a few years now and has saved a substantial amount of money. he now wants to invest 50 percent of his savings in a bank account where it will be locked for three years and gain interest. which type of bank account should brian open?
Answers: 2
image
Advanced Placement (AP), 24.06.2019 16:00, rachelcondon8860
Individuals accused of a crime may use one of several common defenses during trial name one of the commonly used defenses
Answers: 1
image
Advanced Placement (AP), 25.06.2019 13:30, kivking12
Compare and contrast the impact of global commerce on european and asian dynasties. did any dynasty hold an advantage over others in controlling commercial networks and using them to enrich their societies?
Answers: 1
image
Advanced Placement (AP), 25.06.2019 23:20, ashiteru123
You find a mysterious, dull substance on the ground and pick it up for a closer look. it is powdery, very light, and soft to the touch. the substance is most likely i. an organic mineral ii. a metallic mineral iii. a nonmetallic mineral i only ii only iii only i and ii i and iii
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
Chemistry, 18.05.2021 06:40
Konu
Biology, 18.05.2021 06:40