Which loop is guaranteed to execute at least once?单项选择题
A
foreach
B
for
C
while
D
do-while
登录即可查看完整答案
我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。
类似问题
A do-while loop always executes its body at least once.
What will be the output of the following code snippet if the input number is 5? int num = 5; do { System.out.println(num); num++; } while (num < 10);
Which loop would you use if you want to ensure that some code executes at least once before checking the condition?
The program segment int counter = 1;do { printf("%d ", counter);} while (++counter <= 10); will _______________.
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!