#include”stdio.h”
#include”conio.h”
void main()
{
int n,x,d1,d2;
clrscr();
printf("Enter a 2-digit value\n");
scanf("%d",&n);
d1=n%10;
d2=n/10;
x=d1*10+d2;
printf("The Reverse is %d",x);
getch();
}
OUTPUT WILL BE
Enter a 2-digit value
85
The Reverse is 58
Google Ads
Friday, May 29, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment