#include <stdio.h> int main() { float f,c; scanf("%f",&f); c=5.0/9.0*(f-32);//由于是浮点精度,需要在数字后加.0 printf("%.3f",c); return 0; }