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), 22.06.2019 00:10
Fill in the blanks using the following choices: resource,population,specialization,evolution,selection species diversity,the number and relative abundance of species present in a community,is affected by competition, which results in partitioning and
Answers: 2
question
Advanced Placement (AP), 22.06.2019 11:00
Kate is 14 years old and just started taking dance classes with her friends at a local dance studio. this is her first time in a dance program, so everything is new to her. her friends convinced her to join the class since they have been enjoying it for a few months. how could the following terms her succeed in the dance class? ● secondary reinforcement ● identity vs. role confusion ● observational learning how could the following terms hinder her success in the class? ● circadian rhythm ● basal ganglia ● vestibular sense
Answers: 2
question
Advanced Placement (AP), 23.06.2019 08:30
The 529 plan is the type of plan. a. financial fid. b. grant. c. tuition savings. d. scholarship
Answers: 1
question
Advanced Placement (AP), 24.06.2019 01:30
What is the quickest way to resolve problems from a supply shock?
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
History, 25.12.2019 05:31
question
Mathematics, 25.12.2019 05:31
Questions on the website: 13722362