Take a list of 2-digit hexadecimal numbers as input, and output the binary value, replacing each 1 with an 'X', and each 0 with a space.
FF, 81, 47, 99.
11111111in binary, so print
10000001in binary, so print
01000111in binary, so print
10011001in binary, so print
X XX X
XXXXXXXX X X X XXX X XX X
- The hexadecimal numbers will always be 2-digits.
- There can be any number of hexadecimal numbers.
- You can choose to input in whatever format you want (separated by a space, comma, newline, etc.)
- The character to output for a
X, and for
0it is a
- The outputs must be padded to length 8
Also, apparently I wasn't clear enough: the input is in Hexadecimal (Base 16) not denary (Base 10)
This is code-golf, so the shortest answer in bytes wins!