酷代码 AI
菜单
服务商

C++实现:输入整数判断奇偶与大小并输出对应结果

```cpp #include <iostream> using namespace std; int main() { int n; cin >> n; if (n % 2 == 1) { if (n > 100) { cout << "Odd and Large" << endl; } else { cout << "Odd and Small" << endl; } } else { if (n > 100) { cout << "Even and Large" << endl; } else { cout << "Even and Small" << endl; } } return 0; } ``` ######[AI问答 | 123点数解答 | 2025-12-28 14:53:27]

相关提问
本站限时免费提问中
实用工具查看更多
Linux在线手册 [开发类]
Jquery在线手册 [开发类]
今日油价 [生活类]
图片互转base64 [开发类]
时间转换器 [开发类]