Published in: ASP
URL: http://reusablecode.blogspot.com/2008/07/fibonacci-numbers.html
<% ' Copyright (c) 2008, reusablecode.blogspot.com; some rights reserved. ' ' This work is licensed under the Creative Commons Attribution License. To view ' a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or ' send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California ' 94305, USA. ' Get Fibonacci number function fib(x) dim fibArray() redim fibArray(x) fibArray(0) = 0 fibArray(1) = 1 for i = 2 to x fibArray(i) = fibArray(i - 1) + fibArray(i - 2) next fib = fibArray(x) end function %>
You need to login to post a comment.
