-
Notifications
You must be signed in to change notification settings - Fork 0
/
COMB.INC
34 lines (34 loc) · 1.3 KB
/
COMB.INC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-MODULE COMB
-LINE 9 "COMB.lss"
-IN72
-LINE 35 "COMB.lss"
-STITL COMB
-EJECT
*
************************************************************************
* *
* ##### ####### # # ###### *
* # # # # ## ## # # *
* # # # # # # # # # *
* # # # # # # ###### *
* # # # # # # # *
* # # # # # # # # *
* ##### ####### # # ###### *
* *
* COMB COMBINATIONS *
* *
************************************************************************
*
* COMB.lss
*
-LINE 12 "COMB.lss"
-PUBLIC COMB()
*
DEFINE('COMB(N,M)') :(COMB_END)
*
COMB COMB = EQ(M, 0) 1 :S(RETURN)
COMB = COMB(N - 1, M - 1) * N / M :(RETURN)
*
COMB_END
*
* CE: .MSNOBOL4;