Find the Transpose of a 2-D Matrix in C
This program finds the transpose of a given 2-D matrix (rows become columns and columns become rows). C Program #include <stdio.h> int main() { int a[10][10], transpose[10][10]; int m, n, i, j; printf(“Enter number of rows (m) and columns (n): “); scanf(“%d %d”, &m, &n); printf(“Enter elements of the matrix:\n”); for (i = 0; i … Read more