#include <stdio.h>
int main() {
int A[3][3] = {{11, 12, 13}, {21, 22, 23}, {31, 32, 33}};
int B[3][5] = {{11, 12, 13, 14, 15}, {21, 22, 23, 24, 25}, {31, 32, 33, 34, 35}};
int C[3];
for (int j = 0; j < 5; ++j) {
for (int i = 0; i < 3; ++i) {
C[i] = B[i][j];
}
for (int i = 0; i < 3; ++i) {
B[i][j] = 0;
for (int k = 0; k < 3; ++k) {
B[i][j] += A[i][k] * C[k];
}
}
}
for (int i = 0; i < 3; ++i) {
for (int j = 0; j < 5; ++j) {
printf("%d ", B[i][j]);
}
printf("\n");
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: