c++练习4) 编写程序把华氏温度转换为摄氏温度,公式为 C=5/9*(F-32)

#include<iostream>
using namespace std;
int main(){
	float F,C;
	cout<<"请输入华氏温度: ";
	cin>>F;
	C=(F-32)*5/9;
	cout<<endl<< "对应的摄氏温度为: "<<C;
	return 0;
}

猜你喜欢

转载自blog.csdn.net/jiumi45/article/details/123726844
今日推荐