Run ID:76981

提交时间:2024-06-07 19:58:51

#include <iostream> using namespace std; /*用if语句判断温度,我们输入温度,如果温度大于30度,就告诉大家今天“hot”,否则输出"cold". */ int main() { int n; cin>>n; if(n>=30) { cout<<"hot"; } else { cout<<"cold"; } return 0; }