#include <iostream>
using namespace std;
void reverse(int n);
int main() {
int n;
cin >> n;
reverse(n);
cout << endl;
return 0;
}
void reverse(int n) {
if (n == 0) {
return;
}
cout << n % 10;
reverse(n / 10);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: