Last active
August 13, 2017 17:51
-
-
Save fazlerabbi37/1acc508ce563c79a8e0217fb0470d941 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AdibaShuhin{ | |
public int row; | |
public int column; | |
public void Add(int[][]a,int[][]b){ | |
int [][]c= new int[row][column]; | |
for(int q=0;q<row;q++){ | |
for (int v=0;v<column;v++){ | |
c[q][v]=a[q][v]+b[q][v]; | |
} | |
} | |
for(int q=0;q<row;q++){ | |
for (int v=0;v<column;v++){ | |
System.out.print(c[q][v]+" "); | |
} | |
System.out.println(); | |
} | |
} | |
public void DisplayMatrix(int[][]c){ | |
System.out.println(); | |
for(int q=0;q<row;q++){ | |
for (int v=0;v<column;v++){ | |
System.out.print(c[q][v]+" "); | |
} | |
System.out.println(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment