diff --git a/MatrixTranspose.java b/MatrixTranspose.java new file mode 100644 index 0000000..0c2f8df --- /dev/null +++ b/MatrixTranspose.java @@ -0,0 +1,40 @@ +import java.util.Scanner; +class MatrixTranspose{ + public static void main(String[] args){ + Scanner sc=new Scanner(System.in); + System.out.print("Enter no. of rows: "); + int r=sc.nextInt(); + System.out.print("Enter no. of cols: "); + int c=sc.nextInt(); + + int m[][]=new int [r][c]; + //INPUT + for(int i=0;i