i have to reverse the position of integer like this
input = 12345
output = 54321
i made this but it gives wrong output e.g 5432
#include
I have done this simply but this is applicable upto 5 digit numbers but hope it helps
#include using namespace std; void main() { int a,b,c,d,e,f,g,h,i,j; cin>>a; b=a%10; c=a/10; d=c%10; e=a/100; f=e%10; g=a/1000; h=g%10; i=a/10000; j=i%10; cout<