diff --git a/program1.c b/program1.c index 05bbd6b..0d85a79 100644 --- a/program1.c +++ b/program1.c @@ -6,7 +6,7 @@ void dayin(int board[9][9]) { for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { - printf("%d ", arr[i][j]); + printf("%d ", board[i][j]); if ((j + 1) % 3 == 0 && j < 8) { 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}, {6,7,2,1,9,5,3,4,8}, {1,9,8,3,4,2,5,6,7},