循环后count的值是什么? ( )int count = 0;do { System.out.println("Welcome to Java"); count++;} while (count
A: 10
B: 11
C: 9
D: 8
A: 10
B: 11
C: 9
D: 8
举一反三
- 执行以下循环后,count的值是_________? int count = 0; do { System.out.println("Welcome to Java"); } while (count++ <; 9); System.out.println(count); A: 8 B: 9 C: 10 D: 11
- 下列程序打印( )次“Welcome to Java”?[br][/br] int count = 0; do { System.out.println("Welcome to Java"); count++; } while (count < 10);
- 给定一个Java程序的代码如下所示,则编译运行后,输出结果是 ( )。 public class Test { int count = 9; public void count() { System.out.println("count=" + count++); } A: blic static void main(String args[]) new Test().count(); new Test().count();}} B: count=9 count=9 C: count=10 count=9 D: count=10 count=10 E: count=9 count=10
- The output of the following code is ____.<br/>count = 1; /* initialize count */ while (count <= 10) { printf("%d ",count); count++; /* increment count */ } A: 1 1 1 1 1 1 1 1 … B: 1 2 3 4 5 6 7 8 9 C: 1 2 3 4 5 6 7 8 9 10 D: 1 2 3 4 5 6 7 8 9 10 11
- 下面的代码段执行之后count的值是什么( ) int count = 1; for (int i = 1; i <= 5; i++) { count += i; } System.out.println(count);