Home » C Programming » Addition of Two Matrix in C Programming

Addition of Two Matrix in C Programming

Example: Write a program to add two matrix. Firstly, ask from user order of matrix( number of rows and column). Then take the elements of matrix from user as a input and print the resultant matrix

For example, if a user input order as 3,3, i.e., three rows and three columns and
First matrix                      
1             2             3
4             5             6
7             8             9

Second matrix:
9             8             7
6             5             4
3             2             1


then the output of the program (addition of the two matrices) is:

10           10           10
10           10           10
10           10           10

Matrix addition program in C

OUTPUT

Managed by MochaHost - Fast & Easy WordPress Hosting