#include<stdio.h>
int main()
{
int a; //这里举的例子是一个整型数;
int count=0;
int temp1[16];
int temp2[16];
scanf("%d",&a);
while(count<32)
{
temp1[count/2]=a%2; //从低位向高位递进保存进数组;
a=a>>1;
count++;
temp2[(count-1)/2]=a%2;
a=a>>1;
count++;
}
printf("奇数列的二进制数序列为\n"); //开始将数组反向打印;
for(count=15;count>=0;count--)
printf("%d",temp1[count]);
printf("\n偶数列的二进制数序列为\n");
for(count=15;count>=0;count--)
printf("%d",temp2[count]);
return 0;
}