0
5.7kviews
Write a program to calculate matrix multiplication and transpose for a matrix.
1 Answer
0
322views

Program:

#include <stdio.h>

int main() {
int m, n, p, q, c, d, k, sum = 0;
int first[10][10], second[10][10], multiply[10][10];
printf("Enter the number of rows and columns of first matrix:\n");
scanf("%d%d", &m, &n);
printf("Enter the elements of first matrix:\n");
for (c = 0; c < m; c++)
for (d …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.