95求助
查看原帖
95求助
1318547
svt20150529楼主2025/1/17 22:02
#include<bits/stdc++.h>
using namespace std;

float k,c,f;

int main(){
	
	cin>>k;
	
	c=k-273.15;
	f=c*1.8+32;
	
	if(f>212) cout<<"Temperature is too high!";
	else printf("%.2f %.2f",c,f);
	
	
	return 0;
}
2025/1/17 22:02
加载中...