Advertisement
AKIB37

Untitled

Mar 25th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int N,t=1,l=1;
  5. scanf("%d",&N);
  6. while(1)
  7. {
  8. if(N<=l)
  9. {
  10. printf("%d",t);
  11. break;
  12. }
  13. l=l*2;
  14. t++;
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement