Advanced Placement (AP)
Advanced Placement (AP), 25.01.2022 01:50, shay8850

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, dondre54
An important skill for the beginning home inspector is a. familiarity with reading electric meters. b. good telephone interviewing technique. c. experience in issuing building permits. d. ability to interpret building codes.
Answers: 3
image
Advanced Placement (AP), 24.06.2019 15:30, ahnagoede2768
B. speculate about one positive way and one negative way that this boundary has affected the geographical units it separates over time.
Answers: 1
image
Advanced Placement (AP), 25.06.2019 16:00, flyingcerberus1408
Evidence suggests that the ancient romans had a very formal medical system. it included which of the following? click all that apply. medical schools universities physician apprenticeships nursing homes hospital facilities
Answers: 1
image
Advanced Placement (AP), 25.06.2019 23:00, ZenmasterZack
Who pays into social security a employees b self employed c employers d all of the above
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, 20.09.2019 07:30