#include <stdio.h>
int main() {
int A[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
int B[3][3] = {{9, 8, 7}, {6, 5, 4}, {3, 2, 1}};
int C[3][3] = {0};
int rows_A = 3, cols_A = 3;
int rows_B = 3, cols_B = 3;
for (int i = 0; i < rows_A; i++) {
for (int j = 0; j < cols_B; j++) {
for (int k = 0; k < cols_A; k++) {
C[i][j] += A[i][k] * B[k][j];
}
}
}
printf("Resultant Matrix C:\n");
for (int i = 0; i < rows_A; i++) {
for (int j = 0; j < cols_B; j++) {
printf("%d ", C[i][j]);
}
printf("\n");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: