You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
597 B

#include <stdio.h>
void geshihua(int arr0[9][9])
{
int i,j;
printf("|");
for(i=0;i<9;i++)
{
for(j=0;j<9;j++)
{
printf("%d ",arr0[i][j]);
if(j==8)
{
printf("|\n");
}
if(i==8&&j==8)
break;
if((i+1)%3==0&&j==8&&i!=8)
{
printf("|--------------------|\n");
}
if((j+1)%3==0)
{
printf("|");
}
}
}
}