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
5
Task/Pi/Phix/pi.phix
Normal file
5
Task/Pi/Phix/pi.phix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
integer a,b,c,d,e,g sequence f a=10000 f=repeat(floor(a/5)
|
||||
,8401) c=8400 e=0 while c>0 do g=2*c d=0 b=c while b>0 do
|
||||
d+=f[b]*a g-=1 f[b]=remainder(d, g) d=floor(d/g) g-=1 b-=1
|
||||
if b!=0 then d*=b end if end while printf(1,"%04d",e+floor
|
||||
(d/a)) c-=14 e = remainder(d,a) end while
|
||||
Loading…
Add table
Add a link
Reference in a new issue