编法求解 !! 快来看
public class HelloWorld {
public static void main(String[] args) {
int score1 = 53;
int score2;
System.out.println("加分前成绩:" + score1);
do {
score2 = score1 + 1;
} while (score2 < 60);
System.out.println("加分后成绩:" + score2);
}
}
public class HelloWorld {
public static void main(String[] args) {
int score1 = 53;
int score2;
System.out.println("加分前成绩:" + score1);
do {
score2 = score1 + 1;
} while (score2 < 60);
System.out.println("加分后成绩:" + score2);
}
}
2017-08-04
举报