What you do to isolate a digit:
That isolates the tens column.Code:digit = originalnumber % 100; digit /= 10;
Simply send that digit through, and it should work, I believe, as long as it's not 0.
What you do to isolate a digit:
That isolates the tens column.Code:digit = originalnumber % 100; digit /= 10;
Simply send that digit through, and it should work, I believe, as long as it's not 0.
Do as I say, not as I do . . .
Experimentation is the essence of programming. Just remember to make a backup first.
"I'm a firm believer that <SomeGod> gave us two ears and one mouth for a reason - we are supposed to listen, twice as much as we talk." - LEAF
Questions posted by these guidelines are more likely to be answered.
Debian GNU/Linux user, with the awesome window manager, the git version control system, and the cmake buildsystem generator.