Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- unsigned int a;
- scanf("%u", &a);
- for (int i = 1; ; i *= 2)
- {
- if (a % (2 * i) != 0)
- {
- printf("%u", i);
- break;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement