怎么编写程序,把摄氏温度转化为华氏温度?

怎么编写程序,把摄氏温度转化为华氏温度?

C语言代码如下:(结果保留小数点后两位)

#include<stdio.h>

int main()

{

double she,hua;

printf("请输入摄氏温度:\n");

scanf("%lf",&she);

hua=she*9/5+32;

printf("%.2f℉",hua);

return 0;

}

希望对你有所帮助