输入华氏温度,输出摄氏温度,保留三位小数
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/19 15:43:20
![输入华氏温度,输出摄氏温度,保留三位小数](/uploads/image/f/7442232-24-2.jpg?t=%E8%BE%93%E5%85%A5%E5%8D%8E%E6%B0%8F%E6%B8%A9%E5%BA%A6%2C%E8%BE%93%E5%87%BA%E6%91%84%E6%B0%8F%E6%B8%A9%E5%BA%A6%2C%E4%BF%9D%E7%95%99%E4%B8%89%E4%BD%8D%E5%B0%8F%E6%95%B0)
intmain(){floatc,f;printf("pleaseinputthef=");scanf("%f",&f);c=5/9*(f-32);printf("thec=%f",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”);}编
你是要求用C语言吗?再问:是再答:这个我可以编,但是你地公式写得不清楚。c代表什么,F代表什么。要是一个代表摄氏,一个代表华氏,那肯定是有等号的。你再好好看看。把公式发过来。再问:C代表摄氏温度,F代
#includemain(){floatc,h;while(1){printf("PleaseinputtheC:");scanf("%f",&c);if(c!=0){printf("TheHis:%
#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'
#include<stdio.h>int main(){ float F,c; &nbs
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"
用C写吗?#includeintmain(){floatF;printf("请输入华氏温度:");scanf("%f",&F);printf("与华氏%0.3f°相应的摄氏温度为:%0.3f°\n",
#includeintmain(){floatc,f;printf("请输入华氏温度:");scanf(("%f",&f);c=5*(f-32)/9;printf("摄氏温度为:%.2f\n",c);
一般的输入程序中都有特殊符号选项,那里面有