Browse Source

case 1 etry

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

7
src/main/c/Calculator/calculator.c

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