- Sep 10, 2005
- 7,458
- 1
- 76
I'm trying to write a function where the user inputs a long integer with an even amount of digits. The digits are read off the end two at a time using mod. How can I write a function using recursion that will print the numbers in order? Since I'm using mod to read the last two numbers off the end, the order of the numbers will be backwards.
Also, how come the division function acts screwy when dividing a long long int number? For example, 1234 / 10 isn't giving me 123.
Also, how come the division function acts screwy when dividing a long long int number? For example, 1234 / 10 isn't giving me 123.