执行代码后出现无限循环,请问还要加什么条件吗?例如10组数据以内,或者大于60就停止了
package practise;
public class Demo27 {
public static void main(String agrs[]){
int score=53;
int core=0;
System.out.println(score);
while (score<60) {
System.out.println(core); core++;
}
}
}
package practise;
public class Demo27 {
public static void main(String agrs[]){
int score=53;
int core=0;
System.out.println(score);
while (score<60) {
System.out.println(core); core++;
}
}
}
2015-11-09
举报