以下代码的输出结果是_________? int number = 6; while (number >; 0) { number -= 3; System.out.print(number + " "); }
A: 60
B: 63
C: 30
D: 3 0 -3
A: 60
B: 63
C: 30
D: 3 0 -3
举一反三
- 中国大学MOOC: 以下程序的输出结果是?number = 30if number % 2 == 0: print(number, is even)elif number % 3 == 0: print(number, is multiple of 3)
- 以下程序的输出结果是___________。 number = 10 if number % 2 == 0: print(number, 'is even') elif number % 5 == 0: print(number, 'is multiple of 2')
- 下列语句的输出结果是: number = 4 while number >; 0: for i in range(number): print(i, end='') number -= 1 A: 0123012010 B: 012301201 C: 01230120 D: 0123012
- 如果Number=3,下列命题为真。If Number = 3, point out the truth and false of the following statements.Int(Number * Number) = Number * Number
- int number_range=20;int number=2;boolean isprime=true;while(number<;number_range){isprime=true;for(int divlsor=2;divlsor<;=number/2;divlsor++){if(______){isprime=false;break;}}if(isprime){out.println(number+"<;br>;");}number++;}%>; A: divlsor%number==0 B: number%divlsor==0 C: divlsor/number==0 D: number/divlsor==0