[单选题]public static void main(String[] args) {int c0=0, c1=0, c2=0;for(int x=1; x<=20; x++) {switch(x%3) {case 0: c0++; break;case 1: c1++; break;case 2: c2++; break;}}System.out.println(c0,c1,c2=+c0+,+c1+,+c2);}
国开题库
|
2023-09-29 20:06:09
|
18
[单选题]public static void main(String[] args) {int c0=0, c1=0, c2=0;for(int x=1; x<=20; x++) {switch(x%3) {case 0: c0++; break;case 1: c1++; break;case 2: c2++; break;}}System.out.println(c0,c1,c2=+c0+,+c1+,+c2);}

A.c0,c1,c2=6,7,7
B.c0,c1,c2=7,6,6
查看答案

国家开放大学

形成性考核

您可能感兴趣的试题
TOP