本题要求编写程序,计算华氏温度100°F对应的摄氏温度。计算公式:C=5×(F−32)/9,式中:C表示摄氏温度,F表示华氏温度,输出数据要求为整型。
int main(){ int F=100;printf(" fahr=100, celsius=%d",5*( F-32)/9);return 0;}
#include <stdio.h>
include 前面要有井号# 如 #include <stdio.h> 吧
要用代码片提交代码