C Program to Add Two Matrices Using Multi-dimensional Arrays

This program takes two matrices of order r*c and stores them in a two-dimensional array. Then, the program adds these two matrices and displays them on the screen.

In this program, the user is asked to enter the number of rows r and columns c. The value of r and c should be less than 100 in this program.

The user is asked to enter elements of two matrices (of order r*c).

 

Then, the program adds these two matrices, saves it in another matrix (two-dimensional array), and displays it on the screen.

Example: Program to Add Two Matrices