close
/**
* @(#)q1.java
*
*
* @author
* @version 1.00 2007/10/11
*/
public class q1 {
public static void main (String[] args) {
int a[][]={{1,2,3,4},
{1,2,3,4},
{1,2,3,4},
{1,2,3,4}};
int b[][]={{4,3,2,1},
{4,3,2,1},
{4,3,2,1},
{4,3,2,1}};
int c[][]=new int[4][4];
for (int i=0;i
for (int j=0;j
c[i][j]=a[i][j]+b[i][j];
System.out.print(c[i][j]+",");
}
System.out.println();
}
}
}
--------------------Configuration:
5,5,5,5,
5,5,5,5,
5,5,5,5,
5,5,5,5,
Process completed.
全站熱搜
留言列表