#include<stdio.h>
#include<conio.h>
int main()
{ int num, rightdigit;
printf("Enter a number \n");
scanf("%d", &num);
while (num != 0)
{
rightdigit = num % 10;
printf("%d", rightdigit);
num = num / 10;
} printf("\n");
getch();
return 0;
}
Wednesday, 19 October 2011
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment