• 2022-05-27
    以下代码的输出结果是()。(单选题)publicclassTest{publicstaticvoidmain(String[]args){double[]price=newdouble[5];price[0]=98.10;price[1]=32.18;price[2]=77.75;for(inti=0;i<;=price.length;i++){System.out.print((int)price[i]+“”);}}}[/i]
    A: 98 32 77 0 0
    B: 98 32 78 0 0
    C: 98 32 78
    D: 编译出错