# include & ltstdio.h & gt
int tow(int *,int);
int tow(int a[],int n)
{ int Yu = 0;
And (n! =0)
{ a[Yu]= n % 2;
n = n/2;
yu++;
}
Return to;
}
int main()
{ int a[ 10000],num,n;
Printf ("input number:");
scanf("%d ",& ampnum);
n=tow(a,num);
for(n-; n & gt=0; N-)// Note the first n-here; Only once, without him, the array subscript will be out of bounds.
printf("%d ",a[n]);
Returns 0;
}