To espyrian EXCLUSIVELY



Espyrian

Would you, please, repeat that my program (below)
provides exact vales of nCx in the range
____n<=50 , x<=25 ?

Thank you in advance
_____licas (Luis A. Afonso)

REM "binomial"
CLS
DEFDBL A-Z
PRINT " nCHOOSEx "
INPUT " n (<= 50) "; n
INPUT " x (<=25) "; x
ante = 1
FOR k = 0 TO x - 1
post = ante * (n - k) / (k + 1)
ante = post
NEXT k
PRINT USING
" ##################"; ante
END
.



Relevant Pages