int sum=0;
for(int x=0;x<10;x++){
sum+=x;
if(x%3==0){
break;
}
}
System.out.print(sum);
//运行结果为:0
最后修改:2019 年 11 月 09 日
© 允许规范转载