I guess it can work either way, but my first reaction was that you display the digits in the wrong time order; you don't know the units digit until you figure out the other ones and see what's left over. But of course you can use MOD to get the low-end digits first, which is definitely how I'd code it. I wonder why my analysis mind seems to think the other way from my synthesis mind. (Certainly starting at the high end is what we teach children.)