Code of Addition of two matrix using Array #include <stdio.h> int main() { int m, n, i, j, A[10][10], B[10][10], sum[10][10]; printf("Enter the number of rows and columns of matrix\n"); scanf("%d%d", &m, &n); printf("Enter the elements of A matrix\n"); for (i = 0; i < m; i++) for (j = 0; j < n; j++) scanf("%d", &A[c][d]); printf("Enter the elements of B matrix\n"); for (i = 0; i < m; i++) for (j = 0 ; j < n; j++) scanf("%d", &B[c][d]); printf("Sum of entered matrices:-\n"); for (i = 0; i < m; i++) { for (j = 0 ; j < n; j++) { sum[c][d] = A[i][j] + B[...
Thank you
ReplyDelete