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
sukhopar [10]
2 years ago
9

Define an action adder :: io () that reads a given number of integers from the key board, one per line, and displays their sum.

For example:.
Mathematics
1 answer:
aleksandrvk [35]2 years ago
4 0

The program is an illustration of loops

<h3>What are loops?</h3>

Loops are program statements that are used to perform repetition

<h3>The main program</h3>

The program written in Python, where comments are used to explain each line is as follows:

#This initializes sum to 0

summ = 0

#This gets input for the first number

num = int(input())

#This is repeated while num is not -1

while num!= -1:

   #This calculates the sum

   summ+=num

   #This gets input for the num

   num = int(input())

#This prints the sum

print(summ)

Read more about loops at:

brainly.com/question/16397886

You might be interested in
The space shuttle is accelerated off its launch pad to a velocity of 525 m/s in 18.0 seconds.
deff fn [24]

Answer:

<h2> 29.17m/s²</h2>

Step-by-step explanation:

Acceleration is defined as the change in velocity of a body with respect to time.

Acceleration = velocity/time

Given velocity of the space shuttle = 525m/s and time = 18.0seconds

Its average acceleration = 525/18

Its average acceleration (in m/s²) = 29.17m/s²

6 0
3 years ago
F(2)if f(x)=2x-5 plz answer
Lena [83]

Answer:

-1

you use the given functions to set up and simplify f(2)

7 0
3 years ago
10-5 x a = 10 x (12+ 1/4a)
ki77a [65]

Answer:

I hope this is helpful wish you the luck

3 0
3 years ago
A rainstorm produced a rainfall of 2 inches per hour how many hours would it take to get a rainfall amount of 1 foot
Elis [28]
There are 12 inches in one foot. If it rains 2 inches per hour and we need one foot we need to look for a number that can be multiplied by 2 to get 12. 
\

The answer is 6




8 0
3 years ago
Read 2 more answers
A restaurant cook uses 5 quarts of turkey soup to fill out 9 bowls. Each bowl contains the same amount of soup. How much soup is
kolbaska11 [484]
9/5 or 1 4/5 quarts ( sorry if wrong )
5 0
3 years ago
Read 2 more answers
Other questions:
  • On a long hike, Yousif drank 5 pints of water. How much did he drink in quarts?
    13·2 answers
  • An airplane covers 94 miles in 1/6 of an hour.<br> The plane can cover <br> miles in 6 hours
    11·2 answers
  • Solve the following quadratic equation for x by completing the square and solve x^2-8x=-65​
    14·1 answer
  • (05.02)One triangle on a graph has a vertical side of 5 and a horizontal side of 11. Another triangle on a graph has a vertical
    11·2 answers
  • Jeremy walked 6/8 of the way to school and ran the rest of the way. What fraction, in simplest form, shows the part of the way t
    6·1 answer
  • 3/8 x (−3/6) Please help me :(
    11·1 answer
  • a school bus has 22 rows of seats, and 4 students can be seated in each row/ students riding in the bus have filled 19 rows of s
    14·1 answer
  • What is 1/3 divided by 2/3 ?
    15·2 answers
  • How do u show 20720 in scientific notation
    8·1 answer
  • Triangle TCL is similar to triangle AEN. solve for x and y​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!