#include #include using namespace std; int main(){ float f,c; //定义华氏度、摄氏度 cin>>f; //输入华氏度 c=5*(f-32)/9; //计算 printf("c=%.2f",c); //输出,保留两位小数 return 0; }