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
(NO TROLLS 3 TIMES THE CHARM) In △ABC, AB = BC = 20 and DE ≈ 9.28. Approximate BD.
andreev551 [17]

Answer:

≈ 5.36

Step-by-step explanation:

If we have a triangle in which the angle measure of it being broken down are the same, that means that the legs in which the angle measures are the same will have the same length.

If we already know that DE ≈ 9.28, then we can subtract this from 20 and divide by two to get BD, which is equal to EC.

20-9.28=10.72\\10.72\div2=5.36

However, I'm not 100% sure about this answer.

Hope this helped (and I hope I'm right)

3 0
3 years ago
Read 2 more answers
The distance from earth to the sun is thought to be 1.496 × 108 kilometers. What is this distance when in standard notation?
just olya [345]

Answer:

I think it is 149,600,000.

Step-by-step explanation:

If the 8 is supposed to be the exponent. Then you move the decimal 8 times to the right.

4 0
3 years ago
What is the x-intercept of the line that passes though the point (5, 3) with a slope of - 2/5?
lukranit [14]
Point/Slope Form of an equation!

(5,3)

slope of -2/5

x= 5
y = 3

y - y1 = m(x-x1)

y - 3 = -2/5(x-5)

y - 3 = -2/5x + 2

y = -2/5x + 5

x intercept of 5
4 0
3 years ago
(03.02 MC)The number of pages that Ana, Hillary, Roger, and Juan can read in a day is shown below:
IgorLugansk [536]

Answer:

Juan

Step-by-step explanation:

The number of pages that Ana, Hillary, Roger, and Juan can read in a day is shown below:

For Ana

Ana read 15% of her 46-page book.

= 15% × 46 pages

= 6.9 pages

For Hillary

Hillary read 11% of her 72-page book.

= 11% × 72 pages

= 7.92 pages

For Roger

Roger read 12% of his 68-page book.

= 12% × 68 pages

= 8.16 pages

For Juan

Juan read 14% of his 69-page book.

= 14% × 69 pages

= 9.66 pages

The person who can read greatest number of pages in a day also means the person who read the highest number of pages in a day.

From the calculation above, that person in JUAN because she can read 9.66 pages of her book in one day.

5 0
2 years ago
function represented by the table? What is the rate of change for the 1 2 -2 0 -1 -8 у 12 -3 2 7 A. 5 B. 1 C. i nin D. -5​
PSYCHO15rus [73]

Answer:A:0

Step-by-step explanation:hope this helps :)

5 0
2 years ago
Other questions:
  • The beginning balance in a savings account us $64.98 after deposit of $73.87 what is the balance
    13·1 answer
  • THERE are 25 students in Ms.Hamptons fifth grade class. THE students want to go on a field trip to a museum. The cost of admissi
    11·1 answer
  • PLZZ HELPP!!
    5·2 answers
  • What is the correct solution to the equation 2x+7 = 19 a) x = 6 b) x = 13 c) x = 12 d) x = 2.5
    8·2 answers
  • 2) A ray is a geometric figure that consist of
    10·1 answer
  • A textbook has a regular selling price of $79.99, and is on sale for $65.50. What is the markdown rate?
    9·1 answer
  • Twice a number, increased by the sum of the same number and five.
    11·1 answer
  • Hal read 114 pages of his book during vacation. This was 60 percent of the book. How many pages does Hal have left to read
    9·1 answer
  • X=2 And x+3^2 I do not understand
    7·1 answer
  • What are the steps you need to take to solve this equation?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!