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), 24.06.2019 17:30, mainsc0324
Which tip applies to the aspire test and psat equally
Answers: 1
image
Advanced Placement (AP), 25.06.2019 09:10, firdausmohammed80
Describe one of your personality traits that you believe to be highly heritable and another trait that seems to be much less so. provide reasons for your answer, and explain why you would expect genetics to exert a greater impact on some personality traits than on others. 10. discuss at least 3 cultural/environmental factors that may influence behavior.
Answers: 3
image
Advanced Placement (AP), 25.06.2019 23:00, alevans7144
The annual earnings of a typical investor are $1,000,000 to $10,000,000. $100,000 to $500,000. $60,000 to $200,000. $40,000 to $80,000.
Answers: 1
image
Advanced Placement (AP), 26.06.2019 18:30, mateoperez496
How many neutrons does an element have if its atomic number is 40 and its mass number is 156?
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
Mathematics, 08.07.2019 08:00
Konu
Mathematics, 08.07.2019 08:00