daima想要拿去
查看原帖
daima想要拿去
1591474
chen987654楼主2024/12/17 20:19

这题得用C++14

#include<iostream>
using namespace std;

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