From 57f7b2821dc11c271d861b881ca8adcd4c09c918 Mon Sep 17 00:00:00 2001 From: fdai7801 Date: Fri, 9 Feb 2024 22:56:16 +0000 Subject: [PATCH] Update main_calculator.c --- src/main/c/main_calculator.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/c/main_calculator.c b/src/main/c/main_calculator.c index 99ee7c6..f208d30 100644 --- a/src/main/c/main_calculator.c +++ b/src/main/c/main_calculator.c @@ -1,4 +1,3 @@ - #include #include #include @@ -1340,8 +1339,7 @@ int mode(int userChoice){ } -// display the mode options: -int displayMenu(){ + printf("\nCalculator Modes: \n"); printf("\n1: Basic Mode\n"); @@ -1351,6 +1349,6 @@ int displayMenu(){ printf("\n5: Unit converter Mode (length, weight volume etc.)\n"); printf("\n0: Exit calculator\n"); - return 1; // return 1 to check if the function works + + -}