You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { int n,rev=0,d; cin>>n; while (n>0) { d=n%10; rev=rev*10+d; n=n/10; } cout<
}
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
include
using namespace std;
int main() { int n,rev=0,d; cin>>n; while (n>0) { d=n%10; rev=rev*10+d; n=n/10; } cout<
}