Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question # 6 math formula what is the output? numb = 25 while numb > 13…

Question

question # 6
math formula
what is the output?
numb = 25
while numb > 13:
numb = numb - 5
print(numb)

Explanation:

Step1: Initial value of numB

numB = 25

Step2: First iteration of while - loop

Since 25 > 13, numB = 25 - 5 = 20

Step3: Second iteration of while - loop

Since 20 > 13, numB = 20 - 5 = 15

Step4: Third iteration of while - loop

Since 15 > 13, numB = 15 - 5 = 10

Step5: Check condition for next iteration

Since 10 is not greater than 13, the loop stops.

Answer:

10