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:
21
Step-by-step explanation:
Let x be the amount of ticket for each game
Given
The expression 8x + 62 represents the total cost of the football game
The total coat for the.game will be
8(7)+62
= 56+62
= 118
If 9x + 34 represents the total cost of the baseball game. The total coat will be;
9(7)+34
= 63+34
=97
To know how much more football game costs, we will take the difference in their cost.
Difference = 118-97
Difference= 21
Hence football game costs 21 more than baseball
-4 - 1 = -5 can be an equation that equals -5.
Opposite angle of a quadrilateral add up to 180 degrees.
This means Angle A plus Angle C equal 180.
We can solve for X using that, then solve for Angle B.
2x-7 + x +4 = 180
Simplify:
3x -3 = 180
Add 3 to each side:
3x = 183
Divide both sides by 3:
x = 183 /3
x = 61
Now we know x, replace x with 61 in the equation for Angle B:
Angle B = 2x+3 = 2(61) +3 = 122 +3 = 125 degrees.