OUTPUT-1 (after running): Enter the number of rows and columns of first matrix: 3 4
Enter the number of rows and columns of second matrix: 4 4
Dimensions of both matrices do not match.
Please enter same dimensions of both matrices.
OUTPUT-2 (after running): Enter the number of rows and columns of first matrix: 3 4
Enter the number of rows and columns of second matrix: 3 4
Enter the elements of first matrix (3 * 4):
5
5
5
5
5
5
5
5
5
5
5
5
Enter the elements of second matrix (3 * 4):
5
5
5
5
5
5
5
5
5
5
5
5
Addition of two matrices is:
10
10
10
10
10
10
10
10
10
10
10
10
Example