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
Classify the number -3
iren [92.7K]

Answer:

The answer of -3 is classified as a integer

8 0
3 years ago
Factor k 2 + 8k + 15.<br> answers.<br> (k + 1)(k + 15)<br> (k + 8)(k + 7)<br> (k + 3)(k + 5)
saw5 [17]
<span>k 2 + 8k + 15
= (k + 5)(k + 3)
answer is </span><span>(k + 3)(k + 5) (last choice)</span>
6 0
3 years ago
Read 2 more answers
Janice is traveling at a constant rate. She traveled 243 miles on 9 gallons of gas and 324 miles on 12 gallons of gas. How many
Neporo4naja [7]

Divide total miles driven by number of gallons of gas used.

243 miles / 9 gallons = 27 miles per gallon

324 miles / 12 gallons = 27 miles per gallon.

She can drive 27 miles on one gallon of gas.

6 0
3 years ago
Ander makes a scale drawing of a tower. He uses scale of ' 1 cm represents 5 m. The tower in real life is 125 m high. How high i
Anastasy [175]

Answer:

25 cm

Step-by-step explanation:

125/5 = 25

hope this helped?

3 0
3 years ago
I need help solving this problem
Anna007 [38]

Answer:

A. (1, 3) is your answer.

Step-by-step explanation:

Since they are both positive that means that it will be increasing.

8 0
3 years ago
Other questions:
  • Consider the following function f(x)=2x/3x^2-3 what is the domain of the function and what is the range of the function
    13·2 answers
  • Mimi needs eleven 18-inch pieces of rhinestone ribbonShe purchased 5 yards of the ribbon shown at the rightIf Mimi purchases the
    10·2 answers
  • Consider the function y=f(x)=3x. The values of f(12) and f(14), rounded to the nearest hundredth, are_______ and__________ , res
    6·2 answers
  • Estimates the product of 20.21 × 999.801?
    6·1 answer
  • Can someone please answer this question please answer my question and answer it correctly and show work please
    5·1 answer
  • What is the area of π=12in
    12·1 answer
  • Only 6 of the 75 trees in the park are at least 30 feat tall what percent of the trees are under 30 feet tall
    9·1 answer
  • What is the value 6 x 90.06
    6·1 answer
  • One-step Equation<br>solve for V<br>26=8+v​
    5·1 answer
  • How do I solve explain steps
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!