Program:
#include<iostream>
#include<conio.h>
using
namespace std;
int main()
{
int Matrix1[3][3] = {{1, 4, 3}, {2, 5, 4}, {3,
6, 3}};
int Matrix2[3][3] = {{7, 8, 9}, {10, 11,
12},{10, 11, 12}};
int Answer[3][3] = {{0, 0, 0}, {0, 0, 0},
{0, 0, 0}};
int inner;
for(int row=0;row<3;row++)
{
for(int colm=0;colm<3;colm++)
{
for (int inner = 0; inner < 3;
inner++) {
Answer[row][colm]+= Matrix1[row][inner]*Matrix2[inner][colm];
}
cout << Answer[row][colm] << " ";
}
cout <<"\n";
}
getch();
}