#include "cell.h" #include void display(struct cell board[9][9]) { int x; int y; int val; for (y = 0; y < 9; y++) { if (y % 3 == 0 && y != 0) printf("------+------+------\n"); for (x = 0; x < 9; x++) { if (x % 3 == 0 && x != 0) printf("|"); val = board[x][y].val; printf("%c ", val == 0? ' ' : val+'0'); } printf("\n"); } printf("\n"); }