|
#include
#include
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;
}
No comments:
Post a Comment