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

Sign In

Register
*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

yFib.lib

  • #1 ✎ 243 Lumage Head Admin Gardening I like to garden! Hobbies Reading I like to read books! Hobbies Drawing I like to draw! Hobbies 'yFib.lib version 1.0.1.2.2.tetris '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 Lumage