voidmain()
{
floatF,C;
printf(“请输入您需要转换的摄氏温度:”);
scanf(“%f”,&C);
F=(C+32)*9/5.0;
printf(“其对应的华氏温度为:%.2f\n”,F);
}
main()
{
floatC,F;
scanf(“%f”,&F);
C=5.0/9*(F-32);
printf(“%8.2f”,C);
}
#include
intmain(void)
{
floatc;
printf(“请输入摄氏度:”);
scanf(“%f”,&c);
printf(“对应的华氏度:%.2f\n”,(c+92)*9/5);
return0;
}