mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1742.c
This commit is contained in:
parent
58e2d0723b
commit
7e770dc065
34
QUSTOJ/1742.c
Normal file
34
QUSTOJ/1742.c
Normal file
|
@ -0,0 +1,34 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int a[4][4];
|
||||
|
||||
int main()
|
||||
{
|
||||
for(int i=0;i<4;i++)
|
||||
{
|
||||
for(int j=0;j<4;j++)
|
||||
{
|
||||
scanf("%d",&a[i][j]);
|
||||
}
|
||||
}
|
||||
printf("array a:\n");
|
||||
for(int i=0;i<4;i++)
|
||||
{
|
||||
for(int j=0;j<4;j++)
|
||||
{
|
||||
printf("%d ",a[i][j]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
printf("array b:\n");
|
||||
for(int i=3;i>=0;--i)
|
||||
{
|
||||
for(int j=0;j<4;j++)
|
||||
{
|
||||
printf("%d ",a[j][i]);
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user