What you do to isolate a digit:

Code:
digit = originalnumber % 100;
digit /= 10;
That isolates the tens column.

Simply send that digit through, and it should work, I believe, as long as it's not 0.