//Program to find mirror image of entered number using function.
#include<stdio.h>
#include<conio.h>
void rev(int);
void main()
{
int n;
clrscr();
printf("Enter the number whose mirror image u want to find");
scanf("%d",&n);
rev(n);
getch();
}
void rev(int x)
{
int r;
while(x>0)
{
r=x%10;
x=x/10;
printf("%d",r);
}
}
#include<stdio.h>
#include<conio.h>
void rev(int);
void main()
{
int n;
clrscr();
printf("Enter the number whose mirror image u want to find");
scanf("%d",&n);
rev(n);
getch();
}
void rev(int x)
{
int r;
while(x>0)
{
r=x%10;
x=x/10;
printf("%d",r);
}
}