我想知道我哪里錯了?幫忙指正一下,謝謝
public class HelloWorld {
? ? public static void main(String[] args) {
? ? ? ??
? ? ? ? // 變量保存成績
? ? ? ? int score = 53;?
? ? ? ??
? ? ? ? // 變量保存加分次數(shù)
? ? ? ? int count = 0;
? ? ? ? //打印輸出加分前成績?
? ? ? ? ?System.out.println("加分前成績:"+score);
? ? ? ?
? ? ? ??
? ? ? ? // 只要成績小于60,就循環(huán)執(zhí)行加分操作,并統(tǒng)計加分次數(shù)
? ? ? ? for(;score<60;count++){
? ? ? ? score=score+1;
? ? ? ? }
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ??
? ? ? ? //打印輸出加分后成績,以及加分次數(shù)
? ? ? System.out.println("加分后成績:"+score);
? ? ? System.out.println("共加了"+count"次");
? ? }
}
2018-11-23
System.out.println("共加了"+count+"次");??
2018-12-07
?System.out.println("共加了"+count"次");次前面短個+號
2018-11-24
謝謝了