SILVER

SILVER

#include<iostream.h>
#include<cmath>
main()
{
int t,res;
cin>>t;
while(t!=0)
{
    res=0;
    int m=0,r=0;
while(m<t)
{
m+=pow(2,r++);         
}          
cout<<r-1<<endl;
cin>>t;          
}     
     
}

No comments:

Post a Comment