95分求助
查看原帖
95分求助
1618475
Saberzhang楼主2025/1/9 19:12
#include<bits/stdc++.h>
using namespace std;
int main(){
	double k,c,f;
    cin>>k;
	if(k>212)
		cout<<"Temperature is too high!";
	else{
		c=k-273.15;
		f=c*1.8+32;
		printf("%.2lf",c);
		cout<<" ";
		printf("%.2lf",f);}
	return 0;
}
2025/1/9 19:12
加载中...