#include <stdio.h>
int main()
{
int num = 0, i = 0;
scanf("%d", &num);
printf("奇数序列为:");
for (i = 31; i >= 0; i-=2)
{
printf("%d ",(num>>i)&1);//也是控制32次(每个整型数按32位来算),只是从31位开始移动
}
printf("\n");
printf("偶数序列为:");
for (i = 30; i >= 0; i -= 2)
{
printf("%d ", (num >> i) & 1);
}
printf("\n");
return 0;
}