Answer:
9.10
Step-by-step explanation:
Lets say cost of cheeseburgers is x and cost of medium shake is y
so first fast food joint gives 2x+3y=8.98----------1
and nother one gives 7x+2y=15.45-----------------------2
multiply eq1 with 2
and multiply 3 to eq3
4x+6y=17.96
21x+6y=46.35
subtract both eq
-17x= - 28.39
cheese burger cost x=1.67 $ put x in eq1
medium shake cost y=1.88$
Answer: y = x + 1
Step-by-step explanation:
y = 1x + c
-7 = 1(-8) + c
-7 = -8 + c
-7 + 8 = c
1 = c
y = 1x + 1 or
y = x + 1
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