首页 > 其他分享 >task2.3

task2.3

时间:2022-10-12 09:44:20浏览次数:44  
标签:%. task2.3 2lf ans printf include

#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

相关文章