forked from pi7mcrg2k/sudoku_valider
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.
18 lines
417 B
18 lines
417 B
3 weeks ago
|
#include <stdio.h>
|
||
|
|
||
|
void printGrid(int grid[9][9]) {
|
||
|
int i, j;
|
||
|
for (i = 0; i < 9; i++) {
|
||
|
for (j = 0; j < 9; j++) {
|
||
|
printf("%2d ", grid[i][j]);
|
||
|
if ((j + 1) % 3 == 0 && j < 8) {
|
||
|
printf("| ");
|
||
|
}
|
||
|
}
|
||
|
printf("\n");
|
||
|
if ((i + 1) % 3 == 0 && i < 8) {
|
||
|
printf("-----------------------\n");
|
||
|
}
|
||
|
}
|
||
|
}
|