Advertisement
filashkov

Untitled

Feb 29th, 2020
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. unsigned int a;
  6. scanf("%u", &a);
  7. for (int i = 1; ; i *= 2)
  8. {
  9. if (a % (2 * i) != 0)
  10. {
  11. printf("%u", i);
  12. break;
  13. }
  14. }
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement