Computer StudiesAlgorithms and flowchartsJAMB
X = 10; while X > 1: X = X / 2. How many times does the loop run?
Show answer
Answer: B. 4
10 → 5 → 2.5 → 1.25 → 0.625: four halvings bring X to 1 or below.
An AdmitMe practice question, written for the JAMB syllabus. Not an official past question.