For a more manual method, you could try the following. I'm not much of a programer, so I wouldn't know the syntax to actually achieve it.
- Divide the number into individual digits (e.g. 157 is (1 x 100) + (5 x 10) + (7 x 1))
- For each number, add 48 to it. This gives the ASCII value of that number (e.g 1 + 48 = 49 = ASCII '1' ... 5 + 48 = 53 = ASCII '5' ... 7 + 48 = 55 = ASCII '7')
Not sure if then you can feed in the numerical ASCII value instead of a char to then print it.