95分,求救
查看原帖
95分,求救
1032165
njz1楼主2024/12/10 20:52
#include<bits/stdc++.h>
using namespace std;
double k,c,f;
int main()
{
	cin>>k;
	if(k>212)
	{
		cout<<"Temperature is too high!";
	}
	else
	{
		c=k-273.15;
		f=c*1.8+32;
		cout<<fixed<<setprecision(2)<<c<<" ";
		cout<<fixed<<setprecision(2)<<f;
	}
	
}
2024/12/10 20:52
加载中...