diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index 4f8b1ce..6ea434e 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -9,6 +9,7 @@ #include #include + #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"); }