以下循环的执行次数是 count=0while count<=10:print(“Programming is fun!”)count=count+1()
A: 0
B: 10
C: 11
D: 死循环
A: 0
B: 10
C: 11
D: 死循环
举一反三
- 执行以下循环后,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
- 循环后count的值是什么? ( )int count = 0;do { System.out.println("Welcome to Java"); count++;} while (count A: 10 B: 11 C: 9 D: 8
- count = 0 while count < 5: print (count, " 小于 5") count = count + 1 else: print (count, " 大于或等于 5")
- 使用while 语句实现打印出1至10.count = 1while ( ) print (count) count = count + 1 if i>10 : break A: 1 : B: True : C: True D: 0
- 下列程序的运行结果是( )。 count = 0 while count < 5: print(count, " is less than 5") count = count + 1 else: print(count, " is not less than 5")