怎样用C语言将数字后面的小数点和后面的数用英文表示出来#includevoid main(){char *Eng1[20]={"zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen"

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 21:27:09
怎样用C语言将数字后面的小数点和后面的数用英文表示出来#includevoidmain(){char*Eng1[20]={"zero","one","two","three","four","five

怎样用C语言将数字后面的小数点和后面的数用英文表示出来#includevoid main(){char *Eng1[20]={"zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen"
怎样用C语言将数字后面的小数点和后面的数用英文表示出来
#include
void main()
{char *Eng1[20]={"zero","one","two","three","four","five","six","seven",
"eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen",
"sixteen","seventeen","eighteen","nineteen"};
char *Eng2[8]={"twenty","thirty","fourty","fifty","sixty","seventy","eighty","ninety"};
int num;
printf("请输入数字:");
scanf("%d",&num);
printf("对应的英文为:");
if(num>=0&&num

怎样用C语言将数字后面的小数点和后面的数用英文表示出来#includevoid main(){char *Eng1[20]={"zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen"
这还不简单,首先是一个浮点数,再就是必须清楚读到小数点几位
输入的话用字符型存储就ok了,0-9和小数点分别对应相应英文用字符数组存储
例如2.3330就读two point three three three zero就可以了

怎样用C语言将数字后面的小数点和后面的数用英文表示出来#includevoid main(){char *Eng1[20]={zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve,thirteen,fourteen,fifteen,sixteen ∏小数点后面的数字 如何将EXCEL小数点后面的数字四舍五入 1÷13=0.076932076932……小数点后面第2006个数字是( ),小数点后面2006个位上的数,它们的和是( 在 C语言中 双精度和单精度的数,小数点后面分别保留几位啊······· excel去掉小数点并且保留小数点后面的数字 C语言中!后面加数字,字母的意思 7分之1化成小数后,小数点后面第n位上的数字是多少?请用C语言编程,如果将7换成任意数m,程序又该如何写?这个问题我后来思考了下,已经有了答案.多谢热心的朋友,虽然你们的解答都是不对的. 将7分之1化成小数后,小数点后面第2008位上的数字是多少 将2/7化为小数,小数点后面第200位上的数字是什么? 判断小数点后有几位的函数如何用C语言判断一个小数的小数点后面有几位,思路也行. 已知3.4620712071…是一个循环小数 那么这个循环小数的小数点后面第100位是几?小数点后面100位小数点数字相加的和是多少? 4/7的商是循环小数,求商的小数点后面第40位上的数?从小数点后面起,前40位数字的总和是? 将3/7化成小数后,小数点后面第2005位上的数字是(),这2005个数字的和是().有急用的! 将七分之二化成小数后,小数点后面的2008位上的数字是(),这2008个数字的和是() 将3/7化成小数后,小数点后面第2005位上的数字是( ),这2005个数字的和是( ). 将3/7化成小数后,小数点后面第2005位上的数字是多少,这2005个数字的和是多少? 1、把21分之4化成小数后,小数点后面第50位上的数字是几?小数点后面50个数字的和是多少?