From 34f60deea1e861e9d7e19cd1bbc6e0758bdd915a Mon Sep 17 00:00:00 2001 From: Ulriche Nguefack Date: Mon, 5 Feb 2024 20:04:37 +0100 Subject: [PATCH] display menu operation --- src/main/c/Calculator/calculator.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 5ea7709..2a41295 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -54,3 +54,12 @@ switch (choice) { return 0; } +// Function definitions +void displayMenu() { + printf("\nSimple Calculator\n"); + printf("1. Add\n"); + printf("2. Subtract\n"); + printf("3. Multiply\n"); + printf("4. Divide\n"); + printf("5. Exit\n"); +} \ No newline at end of file