• 2022-05-28
    以下代码执行的结果是:( )int i=2;int result = 0;switch (i) {case 1:result = result + i;case 2:result = result + i * 2;case 3:result = result + i * 3;}System.out.println(result);
    A: 0
    B: 2
    C: 4
    D: 10