L1-004 计算摄氏温度 (5 point(s))

“输出对应的摄氏温度C的整数值” 所以直接用 int 类型取整输出。

#include <bits/stdc++.h>
using namespace std;

int main(){
	int F;
	cin >> F;
	cout << "Celsius = " << 5 * (F - 32) / 9;
} 

posted on 2021-09-25 20:20  Atl212  阅读(43)  评论(0)    收藏  举报

导航