Alx09

Untitled

Apr 16th, 2020
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main()
  4. {
  5. int i , n;
  6. printf("%d", &n); scanf("%d", &n);
  7. n = 1 << n;
  8. for (i = 1; i <= n; i++) {
  9. if ((i & 1) == 0 && (i & 4) == 0 && i & 8)
  10. printf("%d ", i);
  11. }
  12. system("pause");
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment