subject

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), 22.06.2019 03:30
Morning guys i got some questions for ya heading your way answer !
Answers: 1
question
Advanced Placement (AP), 27.06.2019 01:30
What happens when two galaxies approach each other? a. they form a black hole. b. they merge because of the strong gravitational pull they exert on each other. c. they shred each other into smaller galaxies. d. they form a supernova. e. they repel each other away because of their strong gravitational pull.
Answers: 1
question
Advanced Placement (AP), 27.06.2019 13:00
Which part of the muscular and skeletal system work together to move muscles and bones?
Answers: 1
question
Advanced Placement (AP), 28.06.2019 21:30
Is one accepted term for an early childhood professional who provides care and education to small groups of children in the home
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
Business, 06.12.2020 05:10
question
Mathematics, 06.12.2020 05:10
question
Mathematics, 06.12.2020 05:10
question
Mathematics, 06.12.2020 05:10
Questions on the website: 13722367