The problem is input a number then the output should be in reverse order..
I already made a code but only good for 9 - digit only...What I want to do is to hold infinite digit, in other words don't have a limit on how many digit that I want to input..
for (x = y;x>0;x=x/10){
z = x % 10;
cout<<z;
}
* code good for 9 - digit only, if I input 10 digit its output is not correct anymore..I used int as data type
Pls. Help