• 2022-05-28
    以下代码的输出结果是()。(单选题)publicclassTest{publicstaticvoidmain(String[]args){double[]price=newdouble[5];price[0]=98.10;price[1]=32.18;price[2]=77.75;System.out.print((int)price[0]+""+(int)price[1]+""+(int)price[2]+""+(int)price[3]+""+(int)price[4]);}}
    A: 98 32 77 0 0
    B: 98 32 78 0 0
    C: 98 32 78
    D: 编译出错
  • 举一反三