QUESTION IMAGE
Question
question # 6
math formula
what is the output?
numb = 25
while numb > 13:
numb = numb - 5
print(numb)
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
10