#include
void PrintBin(int * num)
{
int i;
unsigned int x = 0x8000;
for(i=0; i<16; i++)
{
if((x & *num) >0)
putchar('1');
else
putchar('0');
x = x >> 1;
}
}
int main()
{
int num;
printf("Input an Int:");
scanf("%d", &num);
PrintBin(&num);
return 0;
}