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
A block of wood measures 9.5 inches by 1.5 inches by 8 inches. What is the volume of the block of wood?
MatroZZZ [7]
114 is the answer hope this helps good luck and god bless!
6 0
3 years ago
One lap around a track is one eigth of a mile.a horse ran a distance of 11 laps in 3 minutes and 30 seconds.what is the horses a
pantera1 [17]
Miles earned= ((1÷8)×11)÷1
= 1.375 miles
average speed=total distance/total time
=1.375÷3.5=0.3928 miles/min
5 0
3 years ago
50 students went to Verona. 23 were boys. What percentage were giris?
FrozenT [24]

Answer:

54 percent

Step-by-step explanation:

23 over 50 is .54

5 0
3 years ago
Read 2 more answers
A sphere and a cylinder have the same radius and height. The volume of the cylinder is 11 ft.
Vedmedyk [2.9K]

Answer:

it 12

i litterally just got it right so...

3 0
3 years ago
Help me you will get 20 points
docker41 [41]

Answer:

10.

4(12x+1)

11.

10(9s+8)

........

7 0
3 years ago
Other questions:
  • Clyde Cement wants to analyze a shipment of bags of cement. He knows the weight of the bags is normally distributed so he can us
    11·1 answer
  • 7) David bought a computer that was 20% off the regular price of $1080. If an 8% sales tax was added to the cost of the computer
    10·1 answer
  • What is the solution of x^2+x-6≤0?
    12·1 answer
  • One quadratic function has the formula h(x) = -x 2 + 4x - 2. Another quadratic function, g(x), has the graph shown below
    14·2 answers
  • What is necessary to write a number in scientific notation? Select all that apply. A. One factor is greater than 10. B. The numb
    10·1 answer
  • What is 8/10 and 4/9 close to 0, 1, 1/2
    15·2 answers
  • Let f (x comma y )f(x,y)equals=xx and let C be the segment of the parabola y equals 4 x squaredy=4x2 joining O(0 comma 0 )(0,0)
    8·1 answer
  • How do we find an equation of a linear function by giving two<br> points
    6·1 answer
  • PLEASE HELP I HAVE 5 MIN TO TURN THIS IN!!!!
    9·2 answers
  • What is the density of an object that has a mass of 11 g and volume of 5.5<br> mL?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!