#include <iostream>
using namespace std;
const int _1st=1;
const int _2nd=3;
const int _3rd=1;
void mutipleMatrix(int [_1st][_2nd],int [_2nd][_3rd],int [_1st][_3rd]);
void mutipleMatrix(int A[_1st][_2nd],int B[_2nd][_3rd],int C[_1st][_3rd])
{
for (int i=0;i<_1st;i++){
for (int j=0;j<_3rd;j++){
for (int k=0;k<_2nd;k++){
C[i][j]=C[i][j]+A[i][k]*B[k][j];
}}}
}
void main (){
int A[_1st][_2nd]={1,1,1};
int B[_2nd][_3rd]={1,2,3};
int C[_1st][_3rd]={0};
for (int i=0;i<_1st;i++){
for (int j=0;j<_2nd;j++){
printf("%d\t",A[i][j]);
}
printf("\n");
}
for (int i=0;i<_2nd;i++){
for (int j=0;j<_3rd;j++){
printf("%d\t",B[i][j]);
}
printf("\n");
}
printf("\n");
mutipleMatrix(A,B,C);
for (int i=0;i<_1st;i++){
for (int j=0;j<_3rd;j++){
printf("%d\t",C[i][j]);
}
printf("\n");
}
system("pause");
}