view src/ploki/examples/fib.pk @ 12292:d51f2100210c draft

<kspalaiologos> `` cat <<<"asmbf && bfi output.b" > /hackenv/ibin/asmbf
author HackEso <hackeso@esolangs.org>
date Thu, 02 Jan 2020 15:38:21 +0000
parents ac0403686959
children
line wrap: on
line source

#!../ploki 
LET n 1
FOR loop WUNT (@fib(n) _ " ")
LET n n + 1
IF n > 13
  WUNT "\n"
  END
FI
NEXT loop
FOR fib IF \@ > 2
    KTHX @INT(@SQRT 1.25 + .5 * @fib(\@ - 1))
  FI
KTHX 1