parent
45055419a0
commit
a799a5f83c
@ -1,32 +0,0 @@
|
|||||||
#include<stdio.h>
|
|
||||||
#include<stdlib.h>
|
|
||||||
#include<time.h>
|
|
||||||
int a[10][10];
|
|
||||||
void input()
|
|
||||||
{
|
|
||||||
for(int i=1;i<10;i++)
|
|
||||||
for(int j=1;j<10;j++)
|
|
||||||
scanf("%d",&a[i][j]);
|
|
||||||
}
|
|
||||||
void format(int s[][10])
|
|
||||||
{
|
|
||||||
printf("-------------------------\n");
|
|
||||||
for(int i=1;i<10;i++)
|
|
||||||
{
|
|
||||||
printf("| ");
|
|
||||||
for(int j=1;j<10;j++)
|
|
||||||
{
|
|
||||||
|
|
||||||
printf("%d ",s[i][j]);
|
|
||||||
if(j%3==0) printf("| ");
|
|
||||||
}
|
|
||||||
printf("\n");
|
|
||||||
if(i%3==0) printf("-------------------------\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
input();
|
|
||||||
format(a);
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Reference in new issue