>>629
これでおk

unsigned int v, bit = 1 << sizeof(int) * 8 - 1;
scanf("%d", &v);
while(bit) {
  putchar(bit & v ? '1' : '0');
  bit >>= 1;
}
puts("");