Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Pascals-triangle/Turing/pascals-triangle.turing
Normal file
12
Task/Pascals-triangle/Turing/pascals-triangle.turing
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
proc pascal (n : int)
|
||||
for i : 0 .. n
|
||||
var c := 1
|
||||
for k : 0 .. i
|
||||
put c : 4 ..
|
||||
c := c * (i - k) div (k + 1)
|
||||
end for
|
||||
put ""
|
||||
end for
|
||||
end pascal
|
||||
|
||||
pascal(5)
|
||||
Loading…
Add table
Add a link
Reference in a new issue