為什么我加分后的成績為7而不是60??大佬幫忙解決下 謝謝
public class HelloWorld{
??? public static void main(String []args){
??????? int score = 53;
??????? int count = 0;
??????? System.out.println("加分前成績:"+score);
?????? do{
?????????? score+=1;
?????????? count++;
?????? }while(score<60);
??????? System.out.println("加分后成績:"+count);
??????? System.out.println("共加了"+count+"次!");
??? }
}
2019-05-09
System.out.println("加分后成績:"+score);