C program to addition of two matrix.
Question: Write a C program to take elements of two matrix 3 X 3 and add both matrix. Source Code: #include int main() { int mat1[3][3],i,j; int mat2[3][3],mat3[3][3]; printf("Enter elements of Matrix 1\n"); for(i=0;i Output: Enter elements of Matrix 1 1 2 3 4 5 6 7 8 9 Enter elements of Matrix 2 1 2 4 5 6 7 8 9 elements of Matrix 1 1 2 3 4 5 6 7 8 9 elements of Matrix 2 1 2 3 4 5 6 7 8 9 Addition of two matrix is: 2 4 6 8 10 12 14 16 18