#include<stdio.h>
int main()
{
    int n;
    scanf("%d",&n);
    while(n>0){
       int rem = n%10;
       printf("%d",rem);
       int div = n/10;
       n=div;
    }
    return 0;
}

Embed on website

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