6 lines
No EOL
72 B
Python
6 lines
No EOL
72 B
Python
def f(n):
|
|
c = 0
|
|
while n > 0:
|
|
c = c + 1
|
|
n = n // 2
|
|
return c |