diff --git a/OOP/Java/Lab/Week4/MatrixMulp.java b/OOP/Java/Lab/Week4/MatrixMulp.java index ec32e1e..765b5df 100644 --- a/OOP/Java/Lab/Week4/MatrixMulp.java +++ b/OOP/Java/Lab/Week4/MatrixMulp.java @@ -43,6 +43,7 @@ class MatrixMulp { } } + // Adding matrices if (m == p && n == q) { int[][] C = new int[m][n]; for (int i = 0; i < m; i++) { @@ -54,6 +55,7 @@ class MatrixMulp { printMatrix(C); } + // Multiplying matrices if (n == p) { int[][] D = new int[m][q]; for (int i = 0; i < m; i++) {