Untitled

mail@pastecode.io avatar
unknown
c_cpp
3 years ago
309 B
6
Indexable
#include <bits/stdc++.h>

using namespace std;

int main()
{
    int a;
    while(true)
    {
     cin >> a;
     if(!a) break;
     int p = 0;
     while(a > 0)
     {
        if(a ??? 1)
        {
         cout << (1 ??? p) << endl;
         break;
        }
        a = a ??? 1;
        p++;
     }
    }
}