第23106题 单选题
与下面C++输出效果不一致的代码是( )。
int i;
for (i = 0; i < 10; i++)
    cout << i;
A
int i = 0;
while (i < 10){
cout << i;
i += 1;
}
B
int i = 0;
while (i < 10){
i += 1;
cout << i;
}
C
int i = 0;
while (true){
cout << i;
i += 1;
if (i >= 10)
break;
}
D
int i = 0;
while (true){
if (i >= 10)
break;
cout << i;
i += 1;
}
程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析