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

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 23.06.2019 12:50, gonzalesnik
Want free points + free brainliest? answer this drivers ed question correctly and i got you! a higher grade number for oil means it is a. heavier b. more viscous c. less viscous d. more important
Answers: 2
image
Advanced Placement (AP), 25.06.2019 15:30, tnassan5715
Which of the following types of stars had the smallest initial mass? which of the following types of stars had the smallest initial mass?
Answers: 1
image
Advanced Placement (AP), 25.06.2019 23:00, wulfredo67
Which composer was renowned for creating expressive gregorian chants? a. hildegard of bingen b. carlo gesualdo c. josquin desprez d. guillaume de machaut
Answers: 1
image
Advanced Placement (AP), 26.06.2019 02:30, mianelson367
Gi gi di g i d i d i i f o u n d y o u
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
Physics, 08.07.2019 21:30
Konu
Mathematics, 08.07.2019 21:30
Konu
Mathematics, 08.07.2019 21:30
Konu
Social Studies, 08.07.2019 21:30