Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int i , n;
- printf("%d", &n); scanf("%d", &n);
- n = 1 << n;
- for (i = 1; i <= n; i++) {
- if ((i & 1) == 0 && (i & 4) == 0 && i & 8)
- printf("%d ", i);
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment