/* Write a program to perform matrix multiplication. In matrix *, entry c[i][j] = a[i][0] * b[0][j] + a[i][1] * b[1][j] + a[i][2] * b[2][j] + ... for i and j from 0 to n-1 */ public class Prog8_6 { public static void main(String[] args) { int[][] a = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; // create the two matrices to add int[][] b = {{1, 3, 5}, {2, 4, 1}, {3, 2, 1}}; int n = 3; // the two matrices are 3x3 int[][] c = new int[n][n]; // create an array to store the matrix addition for(int i=0;i