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:
0.545455
Step-by-step explanation:
Answer:
15
Step-by-step explanation:
hope this helps
We need to solve how much it cost to paint a room with are 459 ft² given that a room with an area of 306 ft² costs $72. The solution is shown below:
Cost per area = $72 / 306 ft²
Cost per area = $0.2353 / ft²
Solving the cost for the similar room:
Costs = $0.2353 * 459 ft²
Costs = $108
The answer is $108.