//this is a program to find the reverse of the entered number
#include<stdio.h>
#include<conio.h>
void main()
{
int rem,rev=0,num;
printf("\n\nEnter any number: ");
scanf("%d",&num);
while(num>0)
{
rem=num%10;
rev=(rev*10)+rem;
num=num/10;
}
printf("\n\nThe reverse of the entered number is=%d",rev);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int rem,rev=0,num;
printf("\n\nEnter any number: ");
scanf("%d",&num);
while(num>0)
{
rem=num%10;
rev=(rev*10)+rem;
num=num/10;
}
printf("\n\nThe reverse of the entered number is=%d",rev);
getch();
}