W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
#include
using namespace std; int main() { int temperature = 30; // 以摄氏度表示的温度 if (temperature < 0) { cout << "天气很冷!\n"; } else if (temperature < 20) { cout << "天气凉爽。\n"; } else { cout << "天气暖和。\n"; } return 0; }