BCD converter

Convert decimal numbers to binary-coded decimal (BCD 8421) and back.