#include
#define N 3
#define M 3
int main()
{
int a[N][M];
int i,t,j;
for(i=0;i
for(j=0;j
scanf("%d",&a[i][j]);
for(i=0;i
for(j=0;j
printf("%d",a[i][j]);
putchar('\n');
}
for(i=0;i
for(j=0;j
t=a[i][j];
a[i][j]=a[N-1-i][M-1-j];
a[N-1-i][M-1-j]=t;
}
for(i=0;i
for(j=0;j
printf("%d",a[i][j]);
return 0;
}
#include
#define N 3
#define M 3
int main()
{
int a[N][M];
int i,t,j;
for(i=0;i
for(j=0;j
scanf("%d",&a[i][j]);
for(i=0;i
for(j=0;j
printf("%d",a[i][j]);
putchar('\n');
}
for(i=0;i
for(j=0;j
if(i<=j){
t=a[i][j];
a[i][j]=a[j][i];
a[j][i]=t;
}
for(i=0;i
for(j=0;j
printf("%d",a[i][j]);
putchar('\n');
}
return 0;
}
#include
#define N 3
#define M 3
int main()
{
int a[N][M];
int i,t,j;
for(i=0;i
for(j=0;j
scanf("%d",&a[i][j]);
for(i=0;i
for(j=0;j
printf("%d",a[i][j]);
putchar('\n');
}
for(i=0;i
for(j=i;j
{
t=a[i][j];
a[i][j]=a[j][i];
a[j][i]=t;
}
for(i=0;i
for(j=0;j
printf("%d",a[i][j]);
putchar('\n');
}
return 0;
}