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

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 24.06.2019 06:20
Which of the following is not one of the seven points from the pre-start checklist recommended by the nsc
Answers: 1
question
Advanced Placement (AP), 24.06.2019 21:30
The hidden observer theory of hypnosis emphasizes the role of hypnosis. a) habituation b) suggestion effect c) dissociation
Answers: 2
question
Advanced Placement (AP), 25.06.2019 00:00
Carlos is looking at a picture of a convergent boundary on which a volcanic arc and a trench are identified. which type of convergent boundary is carlos looking st?
Answers: 2
question
Advanced Placement (AP), 25.06.2019 13:30
What is the objective ideal and how does it apply to interpersonal communication?
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
Mathematics, 22.02.2020 08:06
question
Physics, 22.02.2020 08:10
question
Mathematics, 22.02.2020 08:10
question
Mathematics, 22.02.2020 08:11
Questions on the website: 13722359