供参考:
#include<stdio.h> int main() { float f, c = 0.0; scanf("%f", &f); c = 5.0 * (f - 32) / 9.0; printf("%.3f\n", c); return 0; }