0
How do i reverse 312 to 213
7 Réponses
+ 2
with a for or while loop which in a new string save reverse number by each digit
+ 2
Without using a container, you can simply do this loop :
1) initialize the result as 0
2) multiply your result then add the unity digit of your number to it
3) divide the number by ten (not the result)
4) if the number is 0, then its done, else go back to 2)
+ 1
thanks guys
0
NB:answer should be in human language
0
can u please explain a little
0
https://code.sololearn.com/cWZ54cIQDUjV/?ref=app
Hope this helps.
Try converting this to C++, I suck at C++.