慕数据5503223
2016-03-07 20:45
int n=53;
int count=0;
for (n<60){
count++;
n=n+1;
}
System.out.println("加分前成绩:"+n);
System.out.println("加分后成绩:"+(n+1));
System.out.println("共加了"+count+次");
}
}
public class aa {
public static void main(String[]args){
int n=53;
int count=0;
System.out.println("加分前成绩:"+n);
for (;n<60;){
n=n+1;
count++;
}
System.out.println("加分后成绩:"+ (n));
System.out.println("共加了"+ count +"次");
}
}
public class HelloWorld { public static void main(String[] args) { int n = 53; int count = 0; System.out.println("加分前成绩:" + n); while (n < 60) { count++; n++; } System.out.println("加分后成绩:" + n); System.out.println("共加了" + count + "次"); } }
Java入门第一季(IDEA工具)升级版
1165172 学习 · 17581 问题
相似问题