if……else中为什么不满足条件不执行else的代码(代码如下)?
if (score<60){
for(;score<60;){
score+=1;
count+=1;
}
}else{
System.out.println("加分后成绩:"+score + "\n" + "共加了"+count+"次");
}
if (score<60){
for(;score<60;){
score+=1;
count+=1;
}
}else{
System.out.println("加分后成绩:"+score + "\n" + "共加了"+count+"次");
}
2016-07-24
举报