From 11e253518dafb458df9e36f5822f84e9ef540775 Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 20:01:58 +0100 Subject: [PATCH] case 5 entry --- src/main/c/Calculator/calculator.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index c02f69f..a25009c 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -42,4 +42,10 @@ switch (choice) { result = divide(num1, num2); printf("Result: %d\n", result); } - break; \ No newline at end of file + break; + case 5: + printf("Exiting...\n"); + break; + default: + printf("Invalid choice\n"); + } \ No newline at end of file