关于for循环的问题
for(ints:arr){
sum+=s;//累加求和
if (s==arr[n-1]) {
System.out.print(s);
break;//最后一次只输出结果
}
这个for(ints:arr)这个是什么意思???
for(ints:arr){
sum+=s;//累加求和
if (s==arr[n-1]) {
System.out.print(s);
break;//最后一次只输出结果
}
这个for(ints:arr)这个是什么意思???
2018-09-18
举报