Browse Source

Commit 33 code

remotes/origin/Lucas
Lucas Heil 11 months ago
parent
commit
4a2a0afae3
  1. 6
      src/main/c/sudoku.c

6
src/main/c/sudoku.c

@ -9,6 +9,7 @@
#include <stdbool.h>
#include <string.h>
#define SIZE 9
#define EMPTY 0
#define LEVEL_NUMBER 3
@ -324,6 +325,7 @@ void turnFunction(int grid[SIZE][SIZE]) {
printf("3. Print Sudoku grid\n");
printf("4. Done function\n");
printf("5. Select level\n");
printf("6. Quit\n");
int action;
@ -357,8 +359,8 @@ void turnFunction(int grid[SIZE][SIZE]) {
selectLevel(grid);
break;
case 6:
printf("Case 6.\n");
break;
printf("Exiting Sudoku program.\n");
exit(0);
default:
printf("Invalid input. Please enter a number between 1 and 6.\n");
}

Loading…
Cancel
Save