#include <iostream>
using namespace std; 
int main() {
    int n, r, sum=0;
    cout <<"Enter the number:";
    cin>>n; 
    cout<<"n="<<n<<endl; 
    while (n>0)
    {
        r=n%10;
        cout <<r; 
        n=n/10;
        
    }
    return 0;
}
    
    

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: