#include <stdio.h>
int main()
{
float f,c; //f为华氏温度,c为摄氏温度
printf("请输入华氏温度:");
scanf("%f",&f);
c=(5.0/9)*(f-32);
printf("摄氏温度为:%f",c);
return 0;
}
#include <stdio.h>
int main()
{
float f,c; //f为华氏温度,c为摄氏温度
printf("请输入华氏温度:");
scanf("%f",&f);
c=(5.0/9)*(f-32);
printf("摄氏温度为:%f",c);
return 0;
}