Untitled
#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++; } } }
#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++; } } }