-->
当前位置:首页 > 题库

PROGRAMMING:Matrix transpose

Luz5年前 (2021-05-10)题库389
Input a matrix of order m (2 < = m < = 6) * n (2 < = n < = 6) from the keyboard, and program to output its transpose matrix.
###Input format:
In the first row, the values of row number m and column number n of the matrix are input. In the second row, the data of the matrix is input according to the matrix format, and the data of the same row is separated by spaces.
###Output format:
Matrix format output, with a space between the peer data.
###Input example:
```in
3 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
```
###Output example:
```out
1 1 1
2 2 2
3 3 3
4 4 4
5 5 5
```







answer:If there is no answer, please comment