posted 7 years ago
First off, you do realize you have a recursive implementation, but you do not have a halting condition--it will recurs forever.
Staying in the same algorithm you have already developed:
make an instance variable, initialize it to zero. multiply it by 10, then add your modulus of you number to it each time though.
Out on HF and heard nobody, but didn't call CQ? Nobody heard you either. 73 de N7GH