|
|
@ -6,7 +6,7 @@ void dayin(int board[9][9])
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (int i = 0; i < 9; i++) {
|
|
|
|
for (int i = 0; i < 9; i++) {
|
|
|
|
for (int j = 0; j < 9; j++) {
|
|
|
|
for (int j = 0; j < 9; j++) {
|
|
|
|
printf("%d ", arr[i][j]);
|
|
|
|
printf("%d ", board[i][j]);
|
|
|
|
if ((j + 1) % 3 == 0 && j < 8) {
|
|
|
|
if ((j + 1) % 3 == 0 && j < 8) {
|
|
|
|
printf("| ");
|
|
|
|
printf("| ");
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -17,7 +17,6 @@ for (int i = 0; i < 9; i++) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int board1[9][9] = { {5,3,4,6,7,8,9,1,2},
|
|
|
|
int board1[9][9] = { {5,3,4,6,7,8,9,1,2},
|
|
|
|
{6,7,2,1,9,5,3,4,8},
|
|
|
|
{6,7,2,1,9,5,3,4,8},
|
|
|
|
{1,9,8,3,4,2,5,6,7},
|
|
|
|
{1,9,8,3,4,2,5,6,7},
|
|
|
|