Print a number in binary, quaternary, octal, hexadecimal and a general power of two
All the bases that are a power of two, like the binary (21), quaternary (22), octal (23), hexadecimal (24) bases, have an integral number of bits per digit1.
Thus to retrieve each digit2 of a numeral we simply brea...