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

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 24.06.2019 08:30, kayleigh88
Which of the following departments would be included in a state government's public safety function? department of education department of emergency management department of environmental protection department of banking and consumer finance
Answers: 3
image
Advanced Placement (AP), 25.06.2019 01:30, caitybugking
General ways to reduce the risk of some action include
Answers: 1
image
Advanced Placement (AP), 25.06.2019 05:30, jadenpmoore2008
The closer the genetic link between two individuals, the greater the correspondence
Answers: 2
image
Advanced Placement (AP), 25.06.2019 06:30, dozsyerra
In florida, refusal the submit to testing (first offense) results in a) license revocation b)a 30 day suspension c) a 6 month suspension d) a 12 month suspension
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
Biology, 15.11.2019 09:31