class Array2Test2{
public static void main(String
[] args
){
int sum
= 0 ;
int[] arr
[] = {{22,66,44},{77,33,88},{25,45,65},{11,66,99}};
for(int x
= 0 ; x
< arr
.length
; x
++){
for(int y
= 0 ; y
< arr
[x
].length
;y
++){
sum
+= arr
[x
][y
] ;
}
}
System
.out
.println("当前年销售额是:"+sum
+"万元") ;
}
}
转载请注明原文地址: https://lol.8miu.com/read-28646.html