Initialize
Enter Matrix Size
X
Step Execution
int main(){
int i,j,k;
int matA[i][j];
int matB[j][k];
int matMult[i][k];
int p,q,r;
for ( p = 0 ; p < i ;p++ )
{
for ( r = 0 ; r <k ; r++ )
{
matMult[p][r] = 0;
for ( q = 0 ; q < j ; q++ )
{
matMult[p][r] += matA[p][q]*matB[q][r]
}
}
}
}
Code Output
Matrix A
Matrix B
Resultant Matrix