2d Array - Prod - Add
2d Array - Prod - Add
2d Array - Prod - Add
#include <stdio.h>
void main() {
int m,n;
#include <stdio.h>
void main() {
int row1, col1, row2, col2;
// Matrix multiplication
for (int i = 0; i < row1; i++) {
for (int j = 0; j < col2; j++) {
for (int k = 0; k < col1; k++) {
c[i][j] = c[i][j] + a[i][k] * b[k][j];
}
}
}