/* Solve the sudoku game, given a ''9x9'' matrix containing numbers between ''0'' and ''9''. The numbers ''0'' represents the unknown numbers and the must be replaced by the program providing a solution to the sudoku. */ #include /* Dimension of a square sudoku matrix */ #define D 9 /* Print the sudoku matrix */ void print_matr(int m[][D], int nr, int nc){ int r, c; for (r=0; r9){ comb[i] = 1; comb[i+1]++; } if (res==1){ printf("\nSolution:\n"); print_matr(m, D, D); } /* }while(res==0 && comb[n_i-1]!=10); */ }while(comb[n_i-1]!=10); return 0; }