TITLE: Algorithm to print the digits on the seven-segment display