C语言编写的英语数字转化代码(数字转化为用英语表达的数字)
#include"stdio.h"
main (){
FILE *fp ;int i ,n ,g,s;
char *a[20]={"zero","one","two","three","four","five","six","seven","eight",
"nine ","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen",
"seventeen","eighteen","nineteen"},*b[10]= {"","","twenty","thirty",
"fourty","fifty","sixty","seventy","eighty",
"ninety "};
fp=fopen("f:\\ENGLISH2.txt","w") ;
for (n=0;n<1000;n++)
{i=rand()%99;
if(i<20)fprintf(fp,"%6s\n",a[i]);
else if(i<100){s=i/10;g=i%10;
if(g==0)fpri