Code in java to find the transpose of a matrix.
suppose your matrix A is 3x3 ok, now every element of your matrix is present at A(i,j)
So, let Transpose of your matrix is B in which row changed to the column that is A(i,j) element is going to B(j,i);
import java.util.Scanner;
public class Main {
...
himanshu-holmes.hashnode.dev1 min read