#include <stdio.h>
void print_binary(unsigned int number)
{
if (number >> 1) {
print_binary(number >> 1);
}
putc((number
& 1) ? '1' : '0', stdout
); }
int main(void) {
print_binary(42);
print_binary(0);
print_binary(-12);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHByaW50X2JpbmFyeSh1bnNpZ25lZCBpbnQgbnVtYmVyKQp7CiAgICBpZiAobnVtYmVyID4+IDEpIHsKICAgICAgICBwcmludF9iaW5hcnkobnVtYmVyID4+IDEpOwogICAgfQogICAgcHV0YygobnVtYmVyICYgMSkgPyAnMScgOiAnMCcsIHN0ZG91dCk7Cn0KCmludCBtYWluKHZvaWQpIHsKCXByaW50X2JpbmFyeSg0Mik7CglwcmludGYoIlxuIik7CglwcmludF9iaW5hcnkoMCk7CglwcmludGYoIlxuIik7CglwcmludF9iaW5hcnkoLTEyKTsKCXByaW50ZigiXG4iKTsKCXJldHVybiAwOwp9Cg==