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