C语言实验——矩阵转置

Problem Description
输入NN的矩阵,输出它的转置矩阵。
Input
第一行为整数N(1≤N≤100)。
接着是一个N
N的矩阵。
Output
转置矩阵。
Sample Input
2
1 2
1 2
Sample Output
1 1
2 2

代码:

#include 
#include 

int main()
{
    int n,i,j,a[101][101];
    scanf("%d",&n);
    for(i=0;i

你可能感兴趣的:(C语言实验——矩阵转置)