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
Whats the difference in 2/3 - 1/6
nasty-shy [4]

Answer:

2/3&1/6

2/3- 1/6

the LCM for 3 and 6 is 6

=(2x6)/(3x6) -(1x6)/(6x6)

=4/6-1/6

=(4-1)/6

find the difference

= 3/6

=1/2

2/3-1/6= 1/2

By using LCM method, 1/2 is the equivalent fraction by subtracting 1/6 from 2/3.

2/3&1/6

2/3- 1/6

cross multiply

2x6-1x3/3x6

simplify

12-3/18

=9/18

= 1/2

2/3-1/6 = 1/2

By using cross multiplication method, 1/2 is the difference between two fractions 2/3 and 1/6.

Step-by-step explanation:

hope that helps>3

7 0
3 years ago
Hopefully, the final time I ask for help xD
gregori [183]

Answer:

y=-1/3x+15

Step-by-step explanation:

You only need to know the y-intercept which is 15, if you drew an imaginary line along the middle of the dots it would go through 15 and not 12.

6 0
3 years ago
Evaluate -x+4 when x = -2
Gnesinka [82]

Answer:

6

Step-by-step explanation:

=> -x+4

<u><em>Given that x = -2</em></u>

=> -(-2)+4

=> 2+4

=> 6

6 0
3 years ago
Read 2 more answers
All of the following are equivalent, except _____.
lianna [129]
Factor x as it is a common factor;
x(8+3)
=11x
4 0
3 years ago
Read 2 more answers
Simplify 6x + 8 / 4x + 4
Mars2501 [29]

(6x + 8) / (4x + 4)
(3x +4)   2(x  1)

2(3x + 4)  4(x +1) 
3 0
3 years ago
Other questions:
  • What is the percent of decrease on an item that went from $25 to $20?
    13·1 answer
  • Write an equation of a line that has an undefined slope and goes through the point (9,-5)
    6·2 answers
  • PLEASE HELP ASAP! Will give BRAINLIEST! Please answer correctly!<br><br><br>No guessing!
    11·2 answers
  • The ages of two groups of karate students are shown in the following dot plots:
    11·1 answer
  • 1. Find the sum of csc230° and cot2 45°.​
    14·1 answer
  • 6x+2y=<br> 6x+2y=<br> \,\,16<br> 16<br> 2x-2y=<br> 2x−2y=<br> \,\,32<br> 32
    7·1 answer
  • A group of eight people are attending the movies together.
    5·1 answer
  • What's the additive inverse of - 1/4
    5·1 answer
  • . .06 cm = ________ mm
    15·2 answers
  • - 6/39 simplified. :)​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!