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

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 14:00
Which of the following is characteristic of an ethnic religion? a.) the religion has spread far beyond its hearth. b.) the religion is not focused on a particular region. c.) the religion is centered on the message of a prophet. d.) the religion attempts to appeal to people everywhere. e.) the religion does not actively try to convert others
Answers: 2
question
Advanced Placement (AP), 24.06.2019 16:30
Which of the following is a resource outside the workplace that will you find information on safety and health issues? a.safety data sheets b.medical manuals c.the osha website d.work task and procedures intruction
Answers: 1
question
Advanced Placement (AP), 25.06.2019 18:30
In which of the following conflicts did the distribution of ethnic groups act as a centripetal force? cyprus afghanistan north and south korea iraq former yugoslavia
Answers: 1
question
Advanced Placement (AP), 25.06.2019 23:20
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
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
World Languages, 08.10.2020 02:01
question
Social Studies, 08.10.2020 02:01
question
Computers and Technology, 08.10.2020 02:01
question
Mathematics, 08.10.2020 02:01
question
Mathematics, 08.10.2020 02:01
Questions on the website: 13722362