|
@ -113,6 +113,12 @@ int main() { |
|
|
scanf("%d %d", &n, &r); |
|
|
scanf("%d %d", &n, &r); |
|
|
result = permutation(n, r); |
|
|
result = permutation(n, r); |
|
|
printf("Permutation of %d and %d: %lf\n", n, r, result); |
|
|
printf("Permutation of %d and %d: %lf\n", n, r, result); |
|
|
|
|
|
break; |
|
|
|
|
|
case 19: |
|
|
|
|
|
printf("Enter n and r: "); |
|
|
|
|
|
scanf("%d %d", &n, &r); |
|
|
|
|
|
result = combination(n, r); |
|
|
|
|
|
printf("Combination of %d and %d: %lf\n", n, r, result); |
|
|
break; |
|
|
break; |
|
|
case : |
|
|
case : |
|
|
printf("Exiting...\n"); |
|
|
printf("Exiting...\n"); |
|
|