#2332. [GESP202303 二级 C++] 第 14 题
[GESP202303 二级 C++] 第 14 题
在下列代码的横线处填写(), 可以使得输出是5。
#include <iostream>
using namespace std;
int main() {
int cnt = 0;
for (char ch = '1'; ch <= '9'; ch++)
if (________) // 在此处填入代码
cnt++;
cout << cnt << endl;
return 0;
}
{{ select(1) }}
- ch < '5'
- ch >= 5
- ch >= '4'
- ch % 2 == 1