include stdio include stdlib define define PN printf int main void int

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>
#include <stdlib.h>
#define N 4
#define PN printf("\n")
int main(void)
{ int mass[N][N],i,j,k;
printf("inpt matr:\n");
//ââîä ìàòðèöû
for(i=0;i<N;++i)
for(j=0;j<N;++j)
scanf("%d", &mass[i][j]);
PN;
for(i=0;i<N;i++)
{for(j=0;j<N;j++)
printf("%d ", mass[j][i]);
PN;
}
system("PAUSE");
return 0;
}