#include <stdio.h> int main(void) { double f, c; printf("输入华氏温度:"); scanf("%lf", &f); c = (5.0/9.0) * (f-32); printf("对应的摄氏度:%f\n", c); return 0; }
符号需要全是英文半角
逗号和分号全是中文符号,改掉
&f 的右边有一个 “这是不对的。 要直接用 &f