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
Which is greater ratio than 2:7
blondinia [14]

Answer:

are their supposed to be answer choices

Step-by-step explanation:

6 0
3 years ago
Need to find the greatest common factor
qaws [65]

Answer: The greatest common factor, or GCF, is the greatest factor that divides two numbers. To find the GCF of two numbers: List the prime factors of each number. Multiply those factors both numbers have in common.

Step-by-step explanation:

4 0
3 years ago
This is due today please help! 15points!
aalyn [17]

Answer:

17x +215/ 5

Step-by-step explanation:

17x +215

     5

3 0
3 years ago
Read 2 more answers
Which table shows a proportional relationship between x and y?
Semenov [28]

Answer:

B

Step-by-step explanation:

A proportional relationship is a relationship which crosses through the origin (0,0) and which has a proportional constant. We can determine this either by finding (0,0) where x=0 and y=0 in the table or by dividing y/x. None of the tables contain (0,0) so we will divide y by x. We are looking for a table which when each y is divided by its x we have the same constant appearing.

<u>Table A</u>

\frac{12}{3} \neq \frac{15}{6} \neq \frac{18}{8} \neq \frac{20}{10}

These fractions are not equal. This is not proportional.

<u>Table B</u>

\frac{0.5}{1}=\frac{1}{2}  =\frac{3.5}{7} =\frac{4}{8}

These fractions are equal and each shows the numerator to be half of the denominator. This is proportional.

<u>Table C</u>

\frac{1}{3}\neq \frac{2.5}{7.5} \neq \frac{4}{15} \neq \frac{6}{20}

These fractions are not equal. This is not proportional.

<u>Table D</u>

\frac{7}{2} \neq \frac{9}{3}\neq  \frac{11}{4} \neq \frac{13}{5}

These fractions are not equal. This is not proportional.

3 0
3 years ago
Amanda spent a total of 70 minutes competing her chores this week. Write and solve an equation to represent the number of minute
gtnhenbr [62]

Answer:

28 minutes spent in washing the dishes.

Step-by-step explanation:

Given the table

Chore             time in minutes

Sweeping           42

Dishes                  ?

Amanda spent a total of 70 minutes competing her chores this week

Total of 70 minutes spent

42 minutes spent in sweeping . to find the number of minutes Amanda spent in washing the dishes , subtract 42 minutes from the total time spent

let x be the number of minutes spent washing the dishes

42+x=70

To solve for x , subtract 42 from both sides

42+x=70\\x= 70-42\\x=28

28 minutes spent in washing the dishes.

4 0
3 years ago
Other questions:
  • How do I determine the intercepts of the line
    8·1 answer
  • Find the product:<br><br> −4<br> 7<br> (−13<br> 2<br> )
    10·2 answers
  • Suppose babies born after a gestation period of 32 to 35 weeks have a mean weight of 2700 grams and a standard deviation of 900
    10·1 answer
  • Hellllllllllppppppppppp
    6·2 answers
  • The are of a shaded region is 118 ft squared. Which equation can be- used to find the value of X, in feet?
    7·1 answer
  • Please help. Which number(s) below belong to the solution set of the inequality? Check all that apply. 9x &gt; 117
    5·1 answer
  • The diagram below is a scale drawing of a farmer's vegetable garden, where the length is 12 inches and the width is 8
    9·1 answer
  • HELP ME HELP ME 10 POINTS
    15·1 answer
  • Answer please eeeeeeee
    13·1 answer
  • In the diagram, ABCD is a parallelogram. Write an argument to support the claim that <br> M x = M y
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!