Browse Source

start point power and factorial operation

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

3
src/main/c/Calculator/calculator.c

@ -17,6 +17,8 @@ double cosine(double angle);
double tangent(double angle); double tangent(double angle);
double permutation(int n, int r); double permutation(int n, int r);
double combination(int n, int r); double combination(int n, int r);
double factorial(double num);
double power(double base, double exponent);
int main() { int main() {
double choice, num1, num2, result, angle; double choice, num1, num2, result, angle;
@ -120,6 +122,7 @@ int main() {
result = combination(n, r); result = combination(n, r);
printf("Combination of %d and %d: %lf\n", n, r, result); printf("Combination of %d and %d: %lf\n", n, r, result);
break; break;
case : case :
printf("Exiting...\n"); printf("Exiting...\n");
break; break;

Loading…
Cancel
Save