View Single Post
Old May 16th, 2006, 4:46 PM   #2
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
It's a two step process. First you break the number down into individual digits (a simple modulus/division operation). Then you convert each digit into the ASCII representation (try adding 48 to the value). Print the resulting characters in the right order and you're sorted.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote