answersLogoWhite

0

it would have a part in it like this:

for (i=0; i<n; ++i) {

. for (j=0; j<l; ++j) {

. . sum= 0;

. . for (k=0; k<m; ++k) {

. . . sum += a[i][k] * b[k][j];

. . }

. . c[i][j] = sum;

. }

}

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor

Add your answer:

Earn +20 pts
Q: How do you write a C-program for matrix multiplication?
Write your answer...
Submit
Still have questions?
magnify glass
imp