代碼哪里出了問題
public class HelloWorld {
??? public static void main(String[] args) {
?????? ?
??????? // 變量保存成績
??????? int score = 53;
?????? ?
??????? // 變量保存加分次數(shù)
??????? int count = 0;
System.out.println("加分前成績:"+score);
??????? for(score=53;score>60;score++){
??????????? if(score<60){
??????????????? count++;
??????????? }
??????? }
??????? System.out.println("加分后成績:"+score);
??????? System.out.println("加分次數(shù)"+count);
2020-07-27
score>60應(yīng)改為score<60.