#include<stdio.h>
#include<conio.h>
main()
{
int num,rem=0,digit;
clrscr();
printf("Enter
number=");
scanf("%d",&num);
while(num>0)
{
rem=rem*10+num%10;
num=num/10;
}
while(rem>0)
{
digit=rem%10;
//rem=rem/10;
switch(digit)
{
case 1:printf(" one");
break;
case 2:printf(" two");
break;
case 3:printf(" three");
break;
case 4:printf(" four");
break;
case 5:printf(" five");
break;
case 6:printf(" six");
break;
case 7:printf(" seven");
break;
case 8:printf(" eight");
break;
case 9:printf(" nine");
}
}
getch();
return(0);
}
/*out put:-
Enter number=123
one two
three */