Matrix Addition and Subtraction program in C language Today here you will be able to learn about multiple tasks in Matrix-like addition, subtraction, and multiplication. @#1.Matrix Addition Suppose that we have two matrices of 3X3 orders. This matrix A and B. In this program C is the addition of A & B; i and k are used for initialization. Matrix Addition Program #include"stdio.h" int main() { int A[10][10],B[10][10],C[10][10],i,k,row,col; printf("Enter The Matrix row & col = "); scanf("%d %d",&row,&col); printf("Enter the First matrix :\n"); for(i=0;i<row;i++) { for (k=0;k<col;k++) { printf("Enter matrix[%d][%d]=",i,k); scanf("%d",&A[i][k]); } } printf("First matrix are:\n"); for(i=0;i<row;i++) { for (k=0;k<col;k++) { printf("%d\t",A[i][k]); } printf("\n"); } printf("Enter the Second matrix :\n"); for(i=0;i<row;i++) { for (k=0;k<col;k++)
The site contents Educational regarding C language.