Browse Source

case permutation

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

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

@ -107,6 +107,12 @@ int main() {
scanf("%lf", &angle); scanf("%lf", &angle);
result = tangent(angle); result = tangent(angle);
printf("Tangent of %.2lf degrees: %lf\n", angle, result); printf("Tangent of %.2lf degrees: %lf\n", angle, result);
break;
case 14:
printf("Enter n and r: ");
scanf("%d %d", &n, &r);
result = permutation(n, r);
printf("Permutation of %d and %d: %lf\n", n, r, result);
break; break;
case : case :
printf("Exiting...\n"); printf("Exiting...\n");

Loading…
Cancel
Save