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), 27.06.2019 08:00
Select the sentence that shows jennifer’s readiness to become a parent. jennifer is a successful entrepreneur. she enjoys weekends with her partner. lately, they have been thinking of having a baby. she visits her mother once a month and her with her chores. she also donates money annually to an orphanage. she also donates money annually to an orphanage
Answers: 1
question
Advanced Placement (AP), 29.06.2019 09:00
Marshall has been diagnosed with autism spectrum disorder. because this disorder is included as a diagnosis in the dsm-5 marshall's mother will be able to join support groups. marshall's mother will know the real cause of his difficult behavior. marshall will be overmedicated. the therapist will be able to suggest appropriate treatment.
Answers: 1
question
Advanced Placement (AP), 29.06.2019 16:30
6. a researcher decides to isolate thylakoid membranes and add protons to the space inside the thylakoids by soaking the thylakoids in acetic acid, which diffuses through the membrane, and then washing the thylakoids very quickly. what will happen? • a. the scheme will run in reverse. • b. atp will be able to be made without light. • c. light will be emitted by the thylakoids. • d. the membranes will dissolve.
Answers: 1
question
Advanced Placement (AP), 29.06.2019 17:30
What are some global weather patterns? ap environemtal science , if you don’t know don’t answer !
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, 25.08.2020 17:01
question
Mathematics, 25.08.2020 17:01
question
Mathematics, 25.08.2020 17:01
question
Physics, 25.08.2020 17:01
question
Mathematics, 25.08.2020 17:01
question
Mathematics, 25.08.2020 17:01
Questions on the website: 13722367