#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.编写程序,将华氏度转换为摄氏度
最新推荐文章于 2024-04-06 00:08:32 发布
#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);
}