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); 单项选择题

A

It will cause a runtime error.

B

It will not print anything as the initial condition is false.

C

It will print the number 5 only.

D

It will print numbers from 5 to 9.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!