大佬幫看下問題出在哪里
public class HelloWorld {
??? public static void main(String[] args) {
???????
??????? // 變量保存成績
??????? int score = 53;
???????
??????? // 變量保存加分次數
??????? int count = 0;
??????? System.out.printle("加分前成績":+score);
???
??????? //打印輸出加分前成績
?????????
?????? while(score,60){
?????????? score++;
?????????? count++;
?????? }
?????? System.out.println("加分后的成績");
?????? System.out.println("共加了"+count+"次!");
???????
??????? // 只要成績小于60,就循環執行加分操作,并統計加分次數
???????
???????
???????
???????
???????
2019-05-10
? public static void main(String[] args) {
????????
??????
???????? int score = 53;
???????
???????? int count = 0;
???????? System.out.println("加分前成績:"+score); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? //感嘆號位置錯誤
????
???????? //打印輸出加分前成績
??????????
??????? while(score<60){ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? //表達式錯誤
??????????? score++;
??????????? count++;
??????? }
??????? System.out.println("加分后的成績"+score); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? //沒有加變量名
??????? System.out.println("共加了"+count+"次!");
????????
???????? // 只要成績小于60,就循環執行加分操作,并統計加分次數
??????? }
} ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?? //花括號少了兩個