#include<stdio.h> #include<math.h> int main() { double F, C; while (scanf("%lf", &C) != 0) { F = 9 * C / 5 + 32; printf("摄氏度C=%.2f时,华氏度F=%.2f", C, F); printf("\n"); } return 0; }
#include<stdio.h> #include<math.h> int main() { double F, C; while (scanf("%lf", &C) != 0) { F = 9 * C / 5 + 32; printf("摄氏度C=%.2f时,华氏度F=%.2f", C, F); printf("\n"); } return 0; }