📝 执行下列 C++ 代码,当输入 `5` 时,输出结果是( )。 ```cpp int n; cin >> n; if (n % 2 == 0) cout << …

📂 C++  ·  ⚡ 难度 1  ·  ❓ 单选题  ·  📖 一级模拟
🏷️ 一级模拟
📖 一级模拟

执行下列 C++ 代码,当输入 `5` 时,输出结果是( )。
```cpp
int n;
cin >> n;
if (n % 2 == 0)
cout << n * n;
else if (n > 3)
cout << n + 2;
else
cout << n;
```
*