#include<stdio.h>
void chang2(int);
#define MAX 100
int main()
{
int input;
printf("please input a int_number:\n");
scanf("%d",&input);
printf("the number's binary is:");
chang2(input);
return 0;
}
void chang2(int x)
{
int arry[MAX]={0};
int top=0;
while(x)
{
top+=1;
arry[top]=x%2;
x=x/2;
}
while(top!=0)
{
printf("%d",arry[top]);
top--;
}
printf("\n");
}