2.有人用温度计测量出用华氏法表示的温度(如F,现要求把它转换为以摄氏法表温度,如C)。
#include<stdio.h>
int main()
{
double f,c;
scanf("%lf",&f);
c = (f-32)*5/9;
printf("摄氏度为: %.2f",c);
return 0;
}