為什么score+1可以,score++就不行了呢?
?public static void main(String[] args){
? ?
? ? ?// 變量保存成績
? ? ? ? int score = 53;?
? ? ? ? int count = 0;
? ? ? ?System.out.println("加分前成績"+score);
? ? ? ?? ? ?do{
? ? ? score=score+1;
? ? ? count=count+1;
? ? ? ?}
? ? ? ? while(score<60);
? ? ? ? System.out.println("加分后成績"+score);
? ? ? ? System.out.println("加分次數(shù)"+count);
? ? ? ??
? ? ? ?
? ? ? ??
? ? ? ??
? ? ??
? ? }
2016-05-02
++score也可以
2016-03-17
可以啊