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