Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question # 2 math formula what is the value of numc at the end of this …

Question

question # 2
math formula
what is the value of numc at the end of this loop?
numc = 12
while numc > 3:
numc = numc / 2

Explanation:

Step1: Initial value

numC = 12

Step2: First iteration

Since 12 > 3, numC = 12/2 = 6

Step3: Second iteration

Since 6 > 3, numC = 6/2 = 3

Step4: Check loop condition

3 is not greater than 3, loop stops.

Answer:

3