3 回答
已采纳

慕圣0830664
TA贡献41条经验 获得超26个赞
for (int i = 0; i < 10; i++) { ...... } //转换成while()循环 int i = 0; while (i < 10) { ...... i++; }

望远
TA贡献1017条经验 获得超1032个赞
for(循环变量初始化;循环条件判断;循环变量改变){ //...循环体 } 改成while: 循环变量初始化; while(循环条件判断){ //...循环体 循环变量改变; }

添加回答
举报
0/150
提交
取消