(2586 Views)

Transpose of a matrix is obtained by changing rows to columns and columns to rows.

In the above algorithm,

- We first declare two matrices a and b of order mxn
- Then we read matrix a from the user. We will use matrix b to store transpose of the matrix.
- Now, we declare two variables i, j and intialize them to 0
- After this we start a loop of i, till it reaches n which gave us the column indexes and insude it a loop of j which gives us the elements of the row.

0 UpvotesUpvote |
0 DownvotesDownvote |

- Algorithm and Flowchart for Matrix Multiplication [1912 Views]
- Pseudocode and Flowchart for finding the largest element in an Array [626 Views]
- How to remove an item from a vector element by remove_if [1802 Views]
- Frustrated Life of a Software Engineer [8864 Views]
- 0/1 Knapsack problem with solution [6316 Views]

- How To Win Ludo King Game Every Time [28688 Views]
- Algorithm to find whether number is Armstrong Number or Not [26430 Views]
- Knuth-Morris-Pratt (KMP) Substring Search Algorithm with Java Example [24380 Views]
- Jio Phone hang on LOGO problem Solution - Hard Reset Jio Phone [19446 Views]
- FlowChart and Algorithm to find Whether a Number is Even or Odd [14414 Views]