Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. //
  2. // Created by Drapegnik on 13.05.15.
  3. //
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.  
  11. int n,ans=0;
  12. cin >> n;
  13. __asm
  14. {
  15. bsr eax, n
  16. mov ans, eax
  17. jz _null
  18. }
  19. cout << ans+1;
  20. system("pause");
  21. return 0;
  22.  
  23. _null:
  24. cout << 0;
  25. system("pause");
  26. return 0;
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement