Computer Science, asked by raunaquekaif, 2 months ago

write a program to create a square matrix and print the original and transpose of the matrix​

Answers

Answered by ajayyd463
1

Answer:

Java Program to display transpose matrix

public class MatrixTransposeExample2{

public static void main(String args[]){

//creating a matrix.

int original[][]={{1,3,4},{2,4,3},{3,4,5}};

System.out.println("Printing Matrix without transpose:");

for(int i=0;i<3;i++){

for(int j=0;j<3;j++){

Explanation:

Mark as brainliest

Similar questions