不知道錯哪里了
public class HelloWorld {
??? public static void main(String[] args) {
???????
??????? // 變量保存成績
??????? int score = 53;
???????
??????? // 變量保存加分次數
??????? int count = 0;
??????? //打印輸出加分前成績
??????? System.out.println("+score");?
??????
???????
??????? // 只要成績小于60,就循環執行加分操作,并統計加分次數
??????? if(score<60){
??????? while(count<=7){
??????? score=score+count;
??????? count++;
??????? }
???????
???????
??????? //打印輸出加分后成績,以及加分次數
??????? System.out.println(+score);
??????? System.out.println(+count);
????? }else
?????? Systrm.out.println("輸出錯誤");
??? }
}
2019-09-13
System.out.println("+score");? 不大雙引號和加號
System.out.println(+score);
System.out.println(+count); ? 不用打加號