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
12
Task/Pascals-triangle/Phix/pascals-triangle.phix
Normal file
12
Task/Pascals-triangle/Phix/pascals-triangle.phix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
sequence row = {}
|
||||
for m = 1 to 13 do
|
||||
row = row & 1
|
||||
for n=length(row)-1 to 2 by -1 do
|
||||
row[n] += row[n-1]
|
||||
end for
|
||||
printf(1,repeat(' ',(13-m)*2))
|
||||
for i=1 to length(row) do
|
||||
printf(1," %3d",row[i])
|
||||
end for
|
||||
puts(1,'\n')
|
||||
end for
|
||||
Loading…
Add table
Add a link
Reference in a new issue