#include <stdio.h> int main () { double x,ans; while(scanf("%lf",&x) != EOF) { ans = 9.0/5.0*x+32.0; printf("摄氏度c=%.2f时,华氏度f=%.2f\n",x,ans); printf("\n"); } return 0; }
标签:%.,华氏度,ans,2f,task,printf From: https://www.cnblogs.com/lkf1213/p/16783368.html