Forcing a 16 digit display for a 16 bit binary

and print it out with a heap of else if statements like

Or, more sensibly, a single if/else and a for loop.