0
5.7kviews
Write a program to calculate matrix multiplication and transpose for a matrix.
1 Answer
| written 9.3 years ago by |
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 …