Answer: 3
Explanation:
What is the value of numC at the end of this loop?
numC = 12
while numC > 3:
numC = numC / 2
numC =
The initial numC value = 12
Condition : while numC is greater than 3 ; 12 > 3 (condition met)
The expression numC / 2 is evaluated
numC / 2 = 12 / 2 = 6
numC then becomes 6 ;
Condition : while numC is greater than 3 ; 6 > 3 (condition met)
numC / 2 = 6 /2 = 3
numC = 3
Condition : while numC is greater than 3 ; 3 > 3 (condition not met)
Loop terminates
numC = 3