Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
210 B
0
Indexable
Never
#include <stdio.h>
#include <math.h>

int main()
{
    double n;
    int k = 0;
    scanf("%lf", &n);
    
    while (n >= 2) {
        k = k + 1;
        n = n / 2;
    }

    printf("%d", k);

    return 0;
}