Advertisement
Codefox

Untitled

Mar 19th, 2014
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ********************************************************
  2. *                                                      *
  3. * fibonacci.lol    Version 1            2013-03-01     *
  4. *                                                      *
  5. * Calculates the first 39 fibonacci numbers            *
  6. *                                                      *
  7. ********************************************************
  8. LULZ fib
  9. BTW - - - - - - - - - -
  10.    I HAS A A%
  11.    I HAS A PREV%
  12.    I HAS A PPREV%
  13.    I HAS A T%
  14. BTW - - - - - - - - - -
  15.    LOL T R 0
  16.    LOL A R 0
  17.    LOL PREV R 1
  18.    LOL PPREV R 0
  19.    VISIBLE! "0)  1"
  20.    IM IN YR LOOP
  21.       LOL A R PREV UP PPREV
  22.       UP T
  23.       VISIBLE  T
  24.       VISIBLE ")  "
  25.       VISIBLE! A
  26.       IZ T BIGGER THAN 38?
  27.       YARLY
  28.          ENUF
  29.       KTHX
  30.       LOL PPREV R PREV
  31.       LOL PREV R A
  32.    IM OUTTA YR LOOP
  33. BTW - - - - - - - - - -
  34. BBHF
  35. ***************************************************************
  36. HAI
  37.    CAN HAS STDIO?
  38.    VISIBLE! "*********************************"
  39.    VISIBLE! "* Calculating fibonacci numbers *"
  40.    VISIBLE! "*********************************"
  41.    @fib
  42.    VISIBLE! "***********"
  43.    VISIBLE! "* Teh End *"
  44.    VISIBLE! "***********"
  45. KTHXBB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement