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:
1000 runners
Step-by-step explanation:
Take total number of runners to be -----------x
90% of x managed to complete the marathon= 90/100 × x =0.9x
30% of those who completed the marathon were men= 30% × 0.9x
=0.3×0.9x= 0.27x
=270 men completed the marathon; this means
0.27x=270--------------------------------find x by dividing both sides by 0.27
x= 270/0.27
x=1000 runners
138c since 1 pound of apples=43c
I believe so. (TRUE). a square has all equal sides so if the figure is just alike, its a reg quad.
Answer:
30 students
Step-by-step explanation:
24 over 80 is equal to x over 100
cross multiply and you get
80x =240
divide 80 on both sides
you get 3
add an extra sero