问答详情
源自:5-1 编程练习

这里哪错了?

int score = 53;
       
        // 变量保存加分次数
        int count = 0;

        System.out.println("加分前成绩:"+score);
        //打印输出加分前成绩
         
       for(;score<=60;score++)
        {count+=1;}
        System.out.println("加分后成绩:"+score);
        System.out.println("共加了"+count"次!");


提问者:慕勒8106004 2018-05-31 15:37

个回答

  • 慕勒8106004
    2018-05-31 15:40:22

    我会了