subject
Advanced Placement (AP), 25.01.2022 01:50 shay8850

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

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 23.06.2019 04:31
Solve this system of equations using the elimination method?
Answers: 1
question
Advanced Placement (AP), 23.06.2019 20:00
The sun a. will become a red giant within two to three million years b. is in its main sequence, which willlast thousands of years c. is in its main sequence, which will last billions of years. d. will explode as a supernova after its main sequence
Answers: 1
question
Advanced Placement (AP), 24.06.2019 19:10
Can someone ! who is the intended audience for cortés—general description of tenochtitlán i need to fill out a hap-p chart pleaaasse
Answers: 3
question
Advanced Placement (AP), 25.06.2019 19:30
Question 1(multiple choice worth 10 points)} stefan sees a commercial on television that makes him think he needs to buy an e-reader. this is an example of wasting time getting distracted allowing someone to set goals
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
question
Social Studies, 05.10.2021 17:10
Questions on the website: 13722367