Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- unsigned int n,e=0;
- unsigned long long int p=1;
- cin>>n;
- while(p*2<=n)
- p*=2,++e;
- cout<<e<<'\n';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement