- 3 The Permutation P N R And Combination C N R Are Given By The Following Formulae P N R N C N R N R 1 (19.62 KiB) Viewed 13 times
3. The permutation, P(n,r) and combination, C(n,r) are given by the following formulae: P(n,r) = n! ;, C(n,r) =. (n-r)!
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
3. The permutation, P(n,r) and combination, C(n,r) are given by the following formulae: P(n,r) = n! ;, C(n,r) =. (n-r)!
3. The permutation, P(n,r) and combination, C(n,r) are given by the following formulae: P(n,r) = n! ;, C(n,r) =. (n-r)! n! r!(n-r)! Write a Visual Basic program that evaluates the permutation and combination for a given n and r. The program should contain a subroutine that evaluates the factorial (do not use the EXCEL factorial command, develop your own subprogram to compute factorial and use it). Check your program for n = 7 and r = 3.