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
Answer:
Step-by-step explanation:
The following points (coordinates) lie on a straight line with slope 3:
(1, 0), (2, 3), (3, 6), (4, 9) ... and so on
So the linear function is y = 3x + b, where b is the y-intercept.
Answer:
4.5
Step-by-step explanation:
7.3= y + 2.8
Subtract 2.8 from both sides
7.3 = y+ 2.8
-2.8 -2.8
--------------------
y = 4.5
Answer:
Step-by-step explanation:
3(a+3)-6=21
<=>3a+9-6=21
<=>3a+3=21
<=>3a=18
<=>a=6
Answer:
it think it is D
Step-by-step explanation:
just take one of the number and move it for example 4x right and 2y up and then look at where the connection is.