Displaying each bit within a byte

Thanks guys - both answers very useful !