Skip to content

Instantly share code, notes, and snippets.

@fazlerabbi37
Last active August 13, 2017 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fazlerabbi37/1acc508ce563c79a8e0217fb0470d941 to your computer and use it in GitHub Desktop.
Save fazlerabbi37/1acc508ce563c79a8e0217fb0470d941 to your computer and use it in GitHub Desktop.
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