L1-004 计算摄氏温度 分数 5

注意取整

// 1'22"
#include <iostream>
using namespace std;

int main()
{
    double f;
    cin >> f;
    cout << "Celsius = " << (int)(5 * (f - 32.0) / 9) << endl;
    return 0;
}
posted @ 2024-07-31 14:18  Frodnx  阅读(7)  评论(0)    收藏  举报