1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ohaa [14]
3 years ago
5

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 num

bers, 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
Advanced Placement (AP)
1 answer:
prohojiy [21]3 years ago
8 0

Answer:n = int(input("How many numbers do you want to sum? "))

total = 0

for x in range(n):

  total += int(input("Enter a number: "))

print("Sum: "+str(total))

Explanation:

You might be interested in
What were the main changes caused by the Neolithic Revolution?
Aleonysh [2.5K]
Nomads became villagers and that led to cities and civilizations 
3 0
3 years ago
What is the most powerful policy used by the federal reserve
svet-max [94.6K]
Monetary policy I think I’m sorry if I’m wrong
5 0
3 years ago
Look at the series: 2, 1, (1/2), (1/4), ... What number should come next?
yaroslaw [1]

Answer:

1/8, 1/16, 1/32, 1/64

Explanation:

Each number is getting divided by 2

5 0
2 years ago
An author wrote, "Detective Simon Levant had the unconscious habit of caressing his moustache while looking over the crime scene
scoray [572]
The correct answer would be A. Character.
8 0
4 years ago
Read 2 more answers
Explain how a natural disruption can impact an ecosystem .
Ivenika [448]

Answer:

Ecosystems change over time. Sudden disruptions such as volcanoes, floods, or fires can affect which species will thrive in an environment.

6 0
3 years ago
Other questions:
  • PLEASE HELP WILL GIVE BRAINLIEST
    15·1 answer
  • Explain how the amino acid substitution shown in Figure 1 is most likely to affect the function of Receptor X
    11·1 answer
  •   Usually, loads of more than ______ pounds require the assistance of a second person.        A. 40   B. 20   C. 50   D. 30
    6·1 answer
  • Does lightning take up space
    13·2 answers
  • In the United States today, which type of factors do you believe are more important in shaping or determining one’s social class
    12·1 answer
  • PANUTO: Pilin sa loob ng kahon ang hinihinging kasagutan ng bawat bilang sa ibaba. Isulat lamang
    7·1 answer
  • 5
    11·2 answers
  • Plz do this good song I’ll pay u 10 dollars
    8·2 answers
  • Sa paanong paraan maipapakita ang pangangalaga sa kalikasan
    14·1 answer
  • In a experiment the group that is exposed to the variable to be tested is called the
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!