Browse Source

refactoring: case(for mutiply and division)

remotes/origin/Ulrich
Ulriche Nguefack 11 months ago
parent
commit
658eada7b1
  1. 4
      src/main/c/Calculator/calculator.c

4
src/main/c/Calculator/calculator.c

@ -76,6 +76,10 @@ double combination(int n, int r);
return num1 + num2;
case 2:
return num1 - num2;
case 3:
return num1 * num2;
case 4:
return num1 / num2;

Loading…
Cancel
Save