What is output by this code?
N ← 20
Count ← 0
WHILE N > 3 DO
N ← DIV(N, 2)
Count ← Count + 1
ENDWHILE
OUTPUT Count
- 20 > 3 is TRUE: N = DIV(20, 2) = 10, Count = 1.
- 10 > 3 is TRUE: N = DIV(10, 2) = 5, Count = 2.
- 5 > 3 is TRUE: N = DIV(5, 2) = 2, Count = 3.
- 2 > 3 is FALSE, so the loop ends.
Answer: 3