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 dogs weighs 7 pounds and triples each year for two years. How much does the dog weigh?
Tanya [424]
Year 1: 7lbs x 3years= 21lbs
Year 2: 21lbs x 3years = 63lbs
5 0
3 years ago
Read 2 more answers
Helppppopleaseee????
rosijanka [135]

Answer:

LQ = 5

Median = 6

Step-by-step explanation:

\frac{n+1}{2} gives us 5.5, so we do the average of position 5 and 6. This gives us 6, so the median is 6.

Now we find the median of the bottom half of the numbers, which is 5, so the LQ is 5.

Now we find the median of the upper half of the numbers, which is 7, so the UQ is 7.

7 0
2 years ago
Jen simplified a radical expression. Her work is shown.
9966 [12]

Answer:

im taking the same test lol

Step-by-step explanation:

6 0
3 years ago
PLEASE HELP with the question 7
sergey [27]

Answer:

4.8 miles per hour.

Step-by-step explanation:

12:2.5

2.5/2.5=1

12/2.5=4.8

3 0
3 years ago
What property is (7+2)z
Nataly [62]

Answer:

Distributive is the correct answer.  

3 0
3 years ago
Other questions:
  • 30 divided by 1/2 A.15 B.20 C.40 D.60
    11·2 answers
  • Five times a number divided by four
    8·2 answers
  • There are 36 students in Mrs.Keatons's sixth grade class. If 5/12 of her students are girls, how many girls in the class?
    14·1 answer
  • How do you turn 0.25 into a fraction in simplest form
    15·2 answers
  • What is y=3x-5 in standard form
    8·1 answer
  • Evaluate each expression please
    5·1 answer
  • Prove the identity of<br><img src="https://tex.z-dn.net/?f=%204%20sin%5E%7B2%7Dx%20%2B%207sin%5E%7B2%7D%20%20%3D%204%20%2B%203co
    5·1 answer
  • Glenn bought a game system and 3 video games for $375. Jim bought a game system and 4 video
    9·1 answer
  • Shawna earns $10 per hour babysitting her neighbors. One Saturday she got Jill to assist her for 40% of everything she earns. Th
    10·1 answer
  • How do I add or subtract f(1).g(-4)
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!