C语言编写数字转换成英语程序

这个程序我实在是不会,请教一下大家了,谢谢!
要求是输入一个数,然后输出相应的英语,如,输入1989,则输出one thousand nine hunderd and eigthy-nine.
谢谢!

#include "stdio.h"
int main()
{
int a;
scanf("%d",&a);
switch(a){
case 1998: printf("one thousand nine hunderd and eigthy-nine. -----1998 \n"); break;
case 1999: printf("one thousand nine hunderd and eigthy-nine. -----1999 \n"); break;
}
return 0;
}
温馨提示:答案为网友推荐,仅供参考
相似回答