Table of Contents

Advertisement

6-4 Numeric Functions
(Value of n,
value of r)
NCR
Numeric expression
Numeric
expression
®
function:
Obtains the combinations (nCr) for given values of n and r.
Parameter:
Value ofn:
Value of r:
Numeric
expression }
n
and
r
are integer values with
Numeric expression
the range ofO
~ r ~ n
<
10
10 .
Explanation:
n
!
1)
Obtains
the combinations
nC r (
=
r
! (
n _
r)
2)
An
error occurs if
n
or
r
contains decimals.
Example:
NCR(5,3)~
(sC3)
NCR (
5
,
0 )
~
(sCo)
1
157

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents