From 4a2a0afae351b73636fae67f4f723ee7f996b0e5 Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:22:46 +0100 Subject: [PATCH] Commit 33 code --- src/main/c/sudoku.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"); }