C++ beginner here.
Just wanted to know how one can invert number sequence i.e. 234 becomes 432.
Thanks!
C++ beginner here.
Just wanted to know how one can invert number sequence i.e. 234 becomes 432.
Thanks!
There's no "instant" way. You'll need to read it, digit by digit, divide by 10 to get to the next digit, and multiply another number and add the digit there...
Thanks.