? yFib.lib (Page 1) ● SmileBASIC Source Forums

Sign In

*Usernames are case-sensitive
Forgot my password
This is the development website, where we test out new features. This isn't the place you're looking for! Go here


  • #1 ✎ 258 Y____ Head Admin Gardening I like to garden! Hobbies Reading I like to read books! Hobbies Drawing I like to draw! Hobbies 'yFib.lib version 'author: Y 'for calculating fibonacci sequence common def fib n: print rfib(n):end common def rfib(n): if(n == 0 || n == 1) then return n else: return rfib(n-1) + rfib(n-2):endif:end common def max_int(): return &h7FFFFFFF:end common def as n end common def yfib n end Posted Edited by Y____