Browse Source

case 4 entry

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
605d875c90
  1. 6
      src/main/c/Calculator/calculator.c

6
src/main/c/Calculator/calculator.c

@ -26,4 +26,10 @@ switch (choice) {
scanf("%d %d", &num1, &num2);
result = subtract(num1, num2);
printf("Result: %d\n", result);
break;
case 3:
printf("Enter two numbers: ");
scanf("%d %d", &num1, &num2);
result = multiply(num1, num2);
printf("Result: %d\n", result);
break;
Loading…
Cancel
Save