#include<stdio.h>
int main(){
    int n=12345,sum=0,c=0;
    while(n!=0){
        c=n%10;
        sum=sum*10+c;
        n=n/10;
    }
    printf("%d",sum);
}

Embed on website

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