#include<STDIO.H>
#include<STRING.H>
main()
{
long num,a[5],x,i,t;
scanf("%ld",&num);
a[0]=num/10000;
a[1]=num/1000-a[0]*10;
a[2]=num%1000/100;
a[3]=num%100/10;
a[4]=num%10;
for(i=0;a[i]==0;i++);
t=5-i;
for(x=0;x<t;x++,i++)
switch(a[i])
{
case 0:printf("ZERO ");break;
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 ");break;
}
}
我写的 写的很烂 有很多想法但是不知道怎么实现...