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.
|
#include<stdio.h>
|
|
int main()
|
|
{
|
|
int a[10][10];
|
|
int i,j,k;
|
|
for(i=0;i<9;i++){
|
|
for(j=0;j<9;j++){
|
|
scanf("%d",&a[i][j]);
|
|
}
|
|
}
|
|
|
|
for(i=0;i<9;i++)
|
|
{if(i==0||i%3==0)
|
|
printf("|-----------|\n");
|
|
|
|
|
|
for(j=0;j<9;j++)
|
|
{
|
|
|
|
if(j==0||j%3==0)
|
|
printf("|");
|
|
|
|
printf("%d",a[i][j]);
|
|
if(j==8) printf("\n");
|
|
}
|
|
}
|
|
}
|