dec to bin
#include <stdio.h>
void binary(unsigned n)
{
unsigned i;
for (i = 1 << 31; i > 0; i >>= 1)
(n & i)? printf("1"): printf("0");
}
int main()
{
int i;
printf("Enter The Number : ");
scanf("%d", &i);
binary(i);
printf("\n");
return 0;
}