练习·循环 3(while)

填空练习 难度 2

#loop

while 的条件:只要 i 不超过 5 就继续。

知识点讲解

while(条件) 表示条件成立就一直循环;<= 是小于等于。

来小码星球,动手写一遍 →