Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Catalan-numbers/MAD/catalan-numbers.mad
Normal file
12
Task/Catalan-numbers/MAD/catalan-numbers.mad
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
NORMAL MODE IS INTEGER
|
||||
DIMENSION C(15)
|
||||
|
||||
C(0) = 1
|
||||
THROUGH CALC, FOR N=1, 1, N.GE.15
|
||||
CALC C(N) = ((4*N-2)*C(N-1))/(N+1)
|
||||
|
||||
THROUGH SHOW, FOR N=0, 1, N.GE.15
|
||||
SHOW PRINT FORMAT CFMT,N,C(N)
|
||||
|
||||
VECTOR VALUES CFMT=$2HC(,I2,4H) = ,I7*$
|
||||
END OF PROGRAM
|
||||
Loading…
Add table
Add a link
Reference in a new issue