0
How to reverse the integer when we are getting an input in c++?eg:123 is input, we need to change it as.... 321.
I'm not clear with that portion.
3 Respostas
+ 2
Have a look at it:
https://www.programiz.com/cpp-programming/examples/reverse-number
+ 2
try this:
int x=0;
while(a) {
x=x*10+a%10;
a/=10;
}