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