#include<stdio.h>

int main()
{
    int i,rem,rev=0, sum=0;
    printf("Enter the no. to reversed: \n");
    scanf("%d",&i);
    while(i!=0)
    {
        rem=i%10;
        rev=rev*10+rem;
        sum = sum + rem;
        i=i/10;
    }
    printf("Number reversed: %d",rev);
    return 0;
}

Embed on website

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