Matrix Addition in C

Here you will find program for matrix addition in C.

Two matrix can be added only when number of rows and columns of first matrix is equal to number of rows of columns of second matrix.

Matrix Addition in C

 

Output

How many rows and columns?3
3

Enter first matrix:
2 6 9
3 2 0
2 4 1

Enter second matrix:
3 4 1
6 7 9
11 3 5

Matrix after addition:
5 10 10
9 9 9
13 7 6

Leave a Reply

Your email address will not be published. Required fields are marked *