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

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 24.06.2019 02:00
Drivers must always yield to emergency vehicles traveling
Answers: 1
question
Advanced Placement (AP), 24.06.2019 23:00
Asap 70 points do you think the little albert experiment was ethical or unethical? why? do you think that inflicting pain or suffering in the name of science is acceptable if something is learned from the experiment? why or why not?
Answers: 2
question
Advanced Placement (AP), 25.06.2019 03:30
Love, which can’t be observed or measured directly, is an example of psychological construct
Answers: 1
question
Advanced Placement (AP), 25.06.2019 11:00
Which are the apprehensions of the consumers who shop online? consumers who shop online enjoy the convenience of shopping from home but are apprehensive about theft and loss of privacy.
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
Chemistry, 18.08.2019 08:30
question
Biology, 18.08.2019 08:30
question
Mathematics, 18.08.2019 08:30
question
Social Studies, 18.08.2019 08:30
Questions on the website: 13722367