public class HelloWorld {
public static void main(String[] args) {
// 变量保存成绩
int score = 53;
// 变量保存加分次数
int count = 0;
System.out.println(score);
//打印输出加分前成绩
for(;score<=60;score++){
count++;
if(score==60){
System.out.println(score);
System.out.println("共加了"+(count)+"次!");
}
}
去掉=符号
if都不用写
for(;score<=60;score++){
count++;
应改为
for(;score<60;score++){
count++;
多了个等号