#include
voidmain()
{
floatf,c;
printf("请输入您需要转换的摄氏温度:");
scanf("%f",&c);
f=(c+32)*9/5.0;
printf("其对应的华氏温度为:%.2f ",f);
}
#include
intmain()
{
floatf,c;
while(1)
{
printf("请输入华氏温度:");
scanf("%f",&f);
c=5*(f-32)/9;
printf("摄氏温度为:%0.2f",c);
return0;
}
}