Browse Source

refactoring: case(for cbrt and factorial)

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

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

@ -93,7 +93,11 @@ double combination(int n, int r);
case 10: case 10:
return num1 * num1; return num1 * num1;
case 11: case 11:
return num1 * num1 * num1;
return num1 * num1 * num1;
case 12:
return cbrt(num1);
case 13:
return factorial(num1);

Loading…
Cancel
Save