subject
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

ansver
Answers: 2

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 25.06.2019 14:00
Compare the objectives and strategies of organized labor and populists for challenging the prevailing economic beliefs and practices of the ''gilded age.''
Answers: 1
question
Advanced Placement (AP), 27.06.2019 03:00
Wich of the five senses is excluded as a function of the thalamus
Answers: 1
question
Advanced Placement (AP), 27.06.2019 22:00
Julia went to work for a reputed company under pressure from upper management to cut the cost she directed line employees to ignore some safety precautions which increased productivity
Answers: 1
question
Advanced Placement (AP), 28.06.2019 06:30
Which of the following is a suggested practice to engage families in two-way communication? a. weekly newsletters b. advocacy events c. journal d. take-home backpacks
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
question
Mathematics, 24.05.2021 21:40
question
Mathematics, 24.05.2021 21:40
question
History, 24.05.2021 21:40
question
Mathematics, 24.05.2021 21:40
question
Physics, 24.05.2021 21:40
question
Mathematics, 24.05.2021 21:40