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;
}
注意取整
// 1'22"
#include <iostream>
using namespace std;
int main()
{
double f;
cin >> f;
cout << "Celsius = " << (int)(5 * (f - 32.0) / 9) << endl;
return 0;
}