Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Pascals-triangle/BCPL/pascals-triangle.bcpl
Normal file
14
Task/Pascals-triangle/BCPL/pascals-triangle.bcpl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
get "libhdr"
|
||||
|
||||
let pascal(n) be
|
||||
for i=0 to n-1
|
||||
$( let c = 1
|
||||
for j=1 to 2*(n-1-i) do wrch(' ')
|
||||
for k=0 to i
|
||||
$( writef("%I3 ",c)
|
||||
c := c*(i-k)/(k+1)
|
||||
$)
|
||||
wrch('*N')
|
||||
$)
|
||||
|
||||
let start() be pascal(8)
|
||||
Loading…
Add table
Add a link
Reference in a new issue