C Program to Multiply to Matrix Using Multi-dimensional Arrays

This program takes two matrices of order r1*c1 and r2*c2 respectively. Then, the program multiplies these two matrices (if possible) and displays them on the screen.

To multiply two matrices, the number of columns in the first matrix should be equal to the number of rows in the second matrix. This program displays the error until the number of columns of the first matrix is equal to the number of rows of the second matrix.

Example: Program to Multiply Two Matrices