Code:
#include<stdio.h>
#include<conio.h>
void main()
{
int n,r;
clrscr();
printf("enter an integer");
scanf("%d",&n);
printf("\nreverse of %d : ",n);
while(n>0)
{
r=n%10;
printf("%d",r);
n=n/10;
}
getch();
}