# I compare

 1 2 3 i=1 while i <=n: i*=2 

What is the number of comparisons made in the execution of the while loop shown above?

Details and Assumptions

$n\geq 1$

×