#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int n,i=0,m=0,j;
int bin[32768];
printf("donner votre code dec:");
scanf("%d",&n);
while(n>=1){
if(n%2==1){bin[i]=1; n=n/2;}
else{bin[i]=0;n=n/2;}
m=m+1;
j=m;
i++;
}
for(i=0;i<m;i++){ j=j-1;
printf("%d",bin[j]);
}
printf("\n");
system("PAUSE");
return 0;
}