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]
3 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]3 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
Give the values of a, b, and c needed to write the equation's standard form. 1/4x^2+5=0
Pavel [41]
The equation in its standard form is written as followsax ^ 2 + bx + c = 0
 To find the values of a, b, c we must compare the given equation with the standard equation. Comparing we have:
 ax ^ 2 + bx + c = 0
 1 / 4x ^ 2 + 5 = 0
 Therefore the values of a, b, c are
 a = 1/4
 b = 0
 c = 5
4 0
3 years ago
Read 2 more answers
2/5x + 4 = 1/4x. Find x
irina1246 [14]

Answer:

Solve for  x  by simplifying both sides of the equation, then isolating the variable.

Exact Form:

x =  − 80 /3

Decimal Form:

x = −  26.  ¯

            6

Mixed Number Form:

x = − 26  2

          ----

           3

4 0
3 years ago
Identify the missing side length using a scale factor of 1.5
FromTheMoon [43]
Would it be 6.5 since the scale factor is 1.5 and its added to the 3 to get 4.5? correct me if i’m wrong
5 0
3 years ago
What is the value of m in the equation 1/2m - 3/4 = 16 when n=8
kow [346]

Answer:

answer is 33.5

Step-by-step explanation:

1/2m-3/4=16

1/2m=16+3/4

1/2m=64+3/4

1/2m=67/4

m=67/4×2

m=33.5

8 0
3 years ago
A box contains 5 red, 2 pink and 3 blue beads.
Bess [88]

Answer:

Answer is 10 beds

is correct bro

3 0
3 years ago
Other questions:
  • True or False. The points X, R, K and H coplanar in the attached image.
    5·1 answer
  • Jeremiah starts the day at 6 feet below sea level. for the next 3 minutes, he descends 2 more feet each hour. what is his elevat
    5·1 answer
  • suppose you are given $25 gift card to an online music store. Each song costs $1.95 to purchase and download. How many songs can
    8·2 answers
  • Find the perimeter of triangle ABC, with coordinates A(-3, 0), B(0, 4), and C(3, 0)
    14·1 answer
  • Solve 2(y – 3) = 1.2 – y.
    5·2 answers
  • Mabel bought towels at 3 for $10 and toothbrushes at 5 for $9. She paid $87 for 18 towels and some toothbrushes. How many toothb
    6·2 answers
  • Which expression is irrational?
    6·2 answers
  • Help pls .......................................
    5·1 answer
  • What is the rule that describes the following number pattern <br>0,25;2,5;25;250​
    9·1 answer
  • 1) |x-(-18)| if x&lt;-18<br> 2) |2x| if x&lt;0<br> 3) |x-120| if x&lt;120
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!