LogiQuest
Back to Complexity Analysis
19

What is the output of the following code?

count = 0
n = 16
i = n
while i > 1:
    i //= 2
    count += 1
print(count)
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.