#include"stdio.h"
void main()
{
float f,c;
printf(“please input the Fahrenheit :\n”);
scanf("%f",&f);
c=(f-32)*5/9.0;
printf(“the Celsius degree is :%.2f \n”,c);
}
2.编写程序,将华氏度转换为摄氏度
最新推荐文章于 2023-01-09 17:03:14 发布
#include"stdio.h"
void main()
{
float f,c;
printf(“please input the Fahrenheit :\n”);
scanf("%f",&f);
c=(f-32)*5/9.0;
printf(“the Celsius degree is :%.2f \n”,c);
}