编写程序将华氏温度转成摄氏温度 java_编写一个程序,定义一个函数,实现把华氏温度转换为摄氏温度,公式如 ...

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-17 00:07   11   0

答:#include #include #include using namespace std; int main() { float F,C; coutF; C=5.0/9*(F-32); cout

答:#include main() { double f,c; printf("请输入华氏温度的数值:\n"); scanf("%f",&f); printf("您输入的华氏温度的数值为:%f ℉\n",f); c=(f-32)*5/9; printf("摄氏温度为:%3f ℃",c); }

答:#include float c(float f) {float af=f,a=(af-32)%1.8; return a;} int main(int argv,cha* argc[]) {float f,a; cout

答:#include using namespace std; void main() { double f,c; coutf; c=(f-32.0)*5.0/9.0; cout

答:import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自动生成的方法存根 int F=0; int C=0; Scanner in=new Scanner(System.in ); F=in.nextInt(); C=(int) ((int)5/9.0 * (F-32)); System.out.p...

答:按照你的要求编写的华氏温度转为摄氏温度的C语言程序如下 #include float FtoC(float F) { return (F-32)*5/9.0; } int main() { float F,C; pr

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP