Saturday, August 20, 2011

Program to find mirror image of entered number using function.

//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);
}
}

Previous Next Home
0 Comments
Comments

Leave a Comment

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Twitter Delicious Facebook Favorites More