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

Other questions on the subject: Advanced Placement (AP)

image
Advanced Placement (AP), 25.06.2019 23:20, ashiteru123
You find a mysterious, dull substance on the ground and pick it up for a closer look. it is powdery, very light, and soft to the touch. the substance is most likely i. an organic mineral ii. a metallic mineral iii. a nonmetallic mineral i only ii only iii only i and ii i and iii
Answers: 1
image
Advanced Placement (AP), 26.06.2019 09:40, roshawnandries5471
Which of the following would most likely be a preservationist, as opposed to a conservationist, approach to public land management? i. allowing unrestricted boat access to a lake ii. allowing atv use in all areas of public land iii. closing fragile sections of a park to tourists i only ii only iii only i and iii ii and iii
Answers: 1
image
Advanced Placement (AP), 27.06.2019 08:00, jigaboo420
Maria is late for school sometimes because she is not a morning person. if maria is at school from 8: 00 a. m. to 3: 00 p. m. every day and volunteers at an animal shelter on the weekends, when would be the best time for her to study? a. before school b. right after school c. during the weekend d. before she goes to bed
Answers: 2
image
Advanced Placement (AP), 27.06.2019 20:30, ooferson
Which of the following is the closest to the initiation stage from knapp’s relationship escalation model? a. intimacy b. involvement c. contact d. both a and b
Answers: 2
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: