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)!
Posted: Tue Jul 05, 2022 10:26 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)! 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.