|
Fibonacci WSC component
This component allows you to work out the fibonacci
value of an entered value.
Sample Usage
<%
'variable
Dim objFib
'create an instance of our object
Set objFib = Server.CreateObject("Fibonacci.Calc")
'calculate the Fibonacci value of 3
Response.Write objFib.Fibonacci(3) & "<br>"
'calculate the fibonacci value of 22
Response.Write objFib.Fibonacci(22) & "<br>"
'destroy our instance of the object
Set objFib = Nothing
%>
Download
Right click and save as
Fibonacci Component
|