[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead CareersNG • View topic - Fibonacci Series
CareersNG
Career Development for Nigerians ... A Knowledge Sharing Forum!
Joined: Mon May 22, 2006 11:56 am Posts: 2772 Location: Virtual
1,1,2,3,5,8,13,21,34,........
Hello All, its seams this series has captured a lot of attention in computer science and mathemetics, and i see a lot of big big equations. Now lets talk about writting a code to print the Fibonacci_numbers . You see co-incidentally Fibonacci series is the first algorithm/code i ever wrote (FORTRAN). Then i didnt even know that the series is this important/porpular...but what i wrote then is so simple (few lines) than all the big equations and codes i see this days online. I hereby want to discuss the code here for validation...in case i am missing something.
i think this should simply print all the Fibonacci numbers (uptill Max) in linear time without need for any specialized recursion! So why all the big recursive codes?...can someone pls clarify & validate my code
Tanx!
PS: I never ran d code...no access to computer then...i used my eyes to run it on paper...and i am still using my eyes
_________________ Fowe. Choices make or mar Chances ... add extra care to your choices today.
another interesting program to write is the a program to generate the pascal triangle.. i did that when i studied basic.. i even added colors and lord it felt good to gain my coleagues respect in class... since then i got stuck with the tag "our programmmer". i love programming challenges.. keep me moving
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum