提交时间:2026-05-21 18:28:01
运行 ID: 88918
#include <iostream> using namespace std; int main() { int n; //创建整型变量n cin >> n; //输入n的值 if (n % 2 == 0) { //判断是否为偶数 cout << "even" << endl; //是偶数就输出even } else { cout << "odd" << endl; //奇数就输出odd } return 0; }