Browse Source

display menu operation

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
34f60deea1
  1. 9
      src/main/c/Calculator/calculator.c

9
src/main/c/Calculator/calculator.c

@ -54,3 +54,12 @@ switch (choice) {
return 0; 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");
}
Loading…
Cancel
Save