subject
Advanced Placement (AP), 25.01.2022 01:20 aa985960

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: 1

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 23.06.2019 21:50, genyjoannerubiera
Which of the following is not permitted in a roundabout? a. using your turn signal b. following the rules of right-of-way c. driving at the speed limit d. changing lanes
Answers: 3
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 20:00, momo0528
Receiving 24 points on your license within a 36-month period will cause your license to be suspended for a. 30 days b. three months c. six months d. one year
Answers: 1
image
Advanced Placement (AP), 25.06.2019 20:00, pnicklin00
10. in 2009, roughly of people age 12 or older who did not drink alcohol were current users of illegal drugs. a. 4% b. 10% c. 13% d. 20%
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 in other subjects:

Konu
Arts, 06.12.2020 21:00
Konu
Computers and Technology, 06.12.2020 21:00