#include<stdio.h> #include<math.h> int main() { double c,f; while(scanf("%lf",&c)!=EOF) { f=c*9/5+32; printf("摄氏度c=%.2f,华氏度f=%.2f\n",c,f); printf("\n"); } return 0; }
标签:%.,转换,华氏度,摄氏度,2f,printf,include From: https://www.cnblogs.com/waterwhy/p/16783429.html