输入一个华氏温度,根据公式C=(5 9)(F-32)计算对应的摄氏温度
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 04:05:02
intmain(){floatc,f;printf("pleaseinputthef=");scanf("%f",&f);c=5/9*(f-32);printf("thec=%f",c);}再问:你运
#includevoidmain(){floatc,f;scanf("%f",&f);c=5.0/9*(e-32);printf("%f",c);}
代码#includevoidmain(){doublea,c;scanf("%lf",&a);c=9.0/5*(a-32);printf("%.2lf\n",c);}
我有一本答案是谭浩强的,如果你是用这个的话hi我,这道题目很简单,不看答案都没有问题.我记得里面有这道题目
#includemain(){floattemperature;scanf("%f",&temperature);temperature=5.0/9*temperature+32;printf("%f
#includevoidmain(){floatc,f;printf(“请输入一个华氏温度:”)scanf(“%f”,&f);c=(f-32)/9;printf(“摄氏温度为:%5.2f\n”);}编
includeintmain(){floatfahr,celsius;scanf("%f",&fahr);celsius=5.0*(fahr-32)/9;printf("fahr=%.6f",fahr
你是要求用C语言吗?再问:是再答:这个我可以编,但是你地公式写得不清楚。c代表什么,F代表什么。要是一个代表摄氏,一个代表华氏,那肯定是有等号的。你再好好看看。把公式发过来。再问:C代表摄氏温度,F代
#includevoidmain(){floatF;floatC;scanf("%f",&F);printf("%f",C=5/9*(F-32);}采纳吧少年,这题我们刚做过
5.0不能换成5,否则5/9=0可用float,相应改为floatc;scanf("%f",&c);
华氏转摄氏公式:T℉=1.8t℃+32#includeintmain(){floatf,c;printf("输入华氏温度:\n");scanf("%f",&f);c=(f-32)/1.8;printf
#includeintmain(){floatf,c;//f表示华氏温度,c表示摄氏温度printf("请输入华氏温度:\n");scanf("%f",&f);c=f-273.5;//额你给的公式好像
#includemain(){floatf,c;printf("pleaseenterF:");scanf("%f",&f);c=5.0*(f-32.0)/9.0printf("%f",c);}
#includemain(){floatF,C;charflag;loop:printf("Doyouwanttostart(y/n/q)?\n");flag=getch();if(flag=='q'
Dim a As Singlea = Val(InputBox("输入摄氏"))a= a * 9/5
doublef;std::cin>>f;std::cout
#includeintmain(){floatF,c;while(1){printf("请输入华氏温度:");scanf("%f",&F);c=5*(F-32)/9;printf("摄氏温度为:%0.
#includefloatfun(floatC){floatF;F=C*9/5+32;returnF;}voidmain(){floatC,F;printf("输入摄氏温度:");scanf("%f"
#includeintmain(){floatc,f;printf("请输入华氏温度:");scanf(("%f",&f);c=5*(f-32)/9;printf("摄氏温度为:%.2f\n",c);