Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Pascals-triangle/FOCAL/pascals-triangle.focal
Normal file
11
Task/Pascals-triangle/FOCAL/pascals-triangle.focal
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
1.1 S OLD(1)=1; T %4.0, 1, !
|
||||
1.2 F N=1,10; D 2
|
||||
1.3 Q
|
||||
|
||||
2.1 S NEW(1)=1
|
||||
2.2 F X=1,N; S NEW(X+1)=OLD(X)+OLD(X+1)
|
||||
2.3 F X=1,N+1; D 3
|
||||
2.4 T !
|
||||
|
||||
3.1 S OLD(X)=NEW(X)
|
||||
3.2 T %4.0, OLD(X)
|
||||
Loading…
Add table
Add a link
Reference in a new issue