Browse Source

case 5 entry

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
11e253518d
  1. 8
      src/main/c/Calculator/calculator.c

8
src/main/c/Calculator/calculator.c

@ -42,4 +42,10 @@ switch (choice) {
result = divide(num1, num2); result = divide(num1, num2);
printf("Result: %d\n", result); printf("Result: %d\n", result);
} }
break;
break;
case 5:
printf("Exiting...\n");
break;
default:
printf("Invalid choice\n");
}
Loading…
Cancel
Save