#include <stdio.h> int main(void) { float F=0.0,c; printf("请输入任意华氏温度:"); scanf("%f",&F); c==5/9*(F-32);\\\\\\\\\\\\\\\\\\\\\\\看看这里 printf("%f\n",c); return 0; }
#include <stdio.h> int main(void) { float c,F; printf("请输入任意华氏温度:"); scanf("%f",&F); c=(5.0/9.0)*(F-32); printf("%f\n",c); return 0; } 郁闷 .==和= 我就纳闷了 c=(5.0/9.0)*(F-32) 估计是书看晕了 .老记着=和==的区别 .公式也加上去了 ..
#include <stdio.h> int main(void) { float c,f; printf("请输入任意华氏温度:"); scanf("%f",&f); c=(5.0/9.0)*(f-32); printf("%f\n",c); return 0; }