Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
15
Task/Catalan-numbers/ERRE/catalan-numbers.erre
Normal file
15
Task/Catalan-numbers/ERRE/catalan-numbers.erre
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
PROGRAM CATALAN
|
||||
|
||||
PROCEDURE CATALAN(N->RES)
|
||||
RES=1
|
||||
FOR I=1 TO N DO
|
||||
RES=RES*2*(2*I-1)/(I+1)
|
||||
END FOR
|
||||
END PROCEDURE
|
||||
|
||||
BEGIN
|
||||
FOR N=0 TO 15 DO
|
||||
CATALAN(N->RES)
|
||||
PRINT(N;"=";RES)
|
||||
END FOR
|
||||
END PROGRAM
|
||||
Loading…
Add table
Add a link
Reference in a new issue