Blog Home / Tags : PHP

Finding the Nth Fibonacci number via PHP

Here is an example of Fibonacci numbers:

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ...

Write a function f(x) so that return the following eg:

f(2) = 1
f(4) = 2
f(6) = 5
f(8) = 13 etc

And here is th
Dept: General | Read: 54621 | 2018-11-01
Tags: PHP, Test


Category

New Replies

» Optional sidu_fk table
» SIDU SQL in charts: howto
» Godaddy Magic Quotes Problem
» SIDU import/export data clean
» How to install databases
» SIDU feature request and bug
» Benson Bank Feature Request and Bug Report