Hi all,
NOOB in the house - Here is my first question and most probably the first of very many!
After trawling through various threads I am still at a loss as most threads I have read refer to arrays and arrays haven't been covered by the book yet.
Rather than someone providing me a solution can someone provide a hint at how to tackle the following exercise:
____________________________________________________________________________________________________
Rewrite the DigitSum program given in Figure 4-6 so that instead of adding the digits in the number, it generates the number that has the same digits in the reverse order, as illustrated by this sample run:
Here is the code I am supposed to modify
I believe I understand what the code above is doing however I have no idea of how to apply some reverse logic on it.
Many Thanks!
MeatyChi