Website Design United States, Website Design California, Website Designing United States, Website Designing California

Recursive Fibonacci Function - Visual Basic 6

A simple recursive Fibonacci function, written by a former coworker of mine...

'Special thanks to Brian Morrison for submitting this one...

Option Explicit

Private Function Fib(ByVal n As Long) As Long
If n <= 1 Then
Fib = n
Else
Fib = Fib(n - 1) + Fib(n - 2)
End If
End Function

WEB DESIGN INDIA
42 B Malviya Nagar , New Delhi-110017

Skype: manmeetsi
Email: support.webdesignindia@gmail.com
Tel: 91-011-40502005, 9810067295

 















 


© 2008-2009 dotnet4all.com