问题详情

public class XXK4 { public static void main(String[] args) { int [][]a={{2,5,8},{3,6,9},{4,5,6}}; int []b=new int[3]; int i,j; for(i=0; i<a.length; i++) for(j=0; j<a[i].length; j++) b[i]+=a[i][j]; for(i=0; i<b.length; i++) System.out.print(b[i]+" "); } }


、<span>15 18 15</span>

、<span>16 18 16</span>

时间:2021-07-17 19:36 关键词:

答案解析

<span>15 18 15</span>