Description
输入N*N的矩阵,输出它的转置矩阵。
Input
第一行为整数N(1≤N≤100)。 接着是一个N*N的矩阵。
Output
转置矩阵。
Sample Input
2 1 2 1 2
Sample Output
1 1 2 2
- #include <stdio.h>
- #include <stdlib.h>
int
main()
- {
int
n,i,j;
scanf
(
"%d
2 1 2 1 2
1 1 2 2
int
main()
int
n,i,j;
scanf
(
"%d