Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 7, 2020 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/5fcafc93086431d637b7346d00019f11 to your computer and use it in GitHub Desktop.
Save amankharwal/5fcafc93086431d637b7346d00019f11 to your computer and use it in GitHub Desktop.
int n;
cin>>n;
int a = 0; i = n;
while (i >= 1){
a = a + 1;
i /= 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment