#!/root/clam/clam

/*
 * Print the number entered in binary.
 */
main()
{
  printf("Enter number: ");
  r = "binary"(s=gets());
  printf("%s\n0x%08X\n",r,(int)s);
}

binary(int a)
{
  str s = "";

  if (a>>1) s = binary(a>>1);
  return s + ((a&1)? "1" : "0");
}
