#GESP3155. [GESP]L1-202506-Q3155-J
[GESP]L1-202506-Q3155-J
交换下面 C++ 代码中的 i += 2 和 cnt += 1,交换前后分别运行的两次输出相同。( )
int i, cnt = 0;
cnt = 0;
while (i < 10){
i += 2;
cnt += 1;
}
cout << cnt;
{{ select(1) }}
- 正确
- 错误
相关
在下列比赛中:
交换下面 C++ 代码中的 i += 2 和 cnt += 1,交换前后分别运行的两次输出相同。( )
int i, cnt = 0;
cnt = 0;
while (i < 10){
i += 2;
cnt += 1;
}
cout << cnt;
{{ select(1) }}