Untitled
Anonymous
c_cpp
05/12/2022 8:33 PM
412 B
20
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++;
}
}
}Editor is loading...