HOME BZU Mail Box Online Games Radio and TV Live Cricket Score All Albums
Go Back   BZU PAGES: Find Presentations, Reports, Student's Assignments and Daily Discussion; Bahauddin Zakariya University Multan Institute of Computing Bachelor of Science in Information Technology BsIT 3rd Semester Data Structure

Data Structure Lectures by Sir Ahsan..


Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1  
Old 06-10-2008, 10:09 PM
BSIT07-01's Avatar
Addicted to Computer


 

Join Date: Sep 2007
Location: ------------
Age: 29
Posts: 1,309
Contact Number: ---------------
Program / Discipline: BSIT
Class Roll Number: 07-01
BSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant future
Default [Assignment] Recursive Function for Fibonacci Numbers in C


Just copied from BOOK :)
int fib(int n) { int x , y; if(n<=1) return(n); x=fib(n-1); y=fib(n-2); return(x+y); }
Reply With Quote
  #2  
Old 06-10-2008, 10:13 PM
BSIT07-01's Avatar
Addicted to Computer


 

Join Date: Sep 2007
Location: ------------
Age: 29
Posts: 1,309
Contact Number: ---------------
Program / Discipline: BSIT
Class Roll Number: 07-01
BSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant futureBSIT07-01 has a brilliant future
Default Re: [Assignment] Recursive Function for Fibonacci Numbers in C


What is Fobonacci Series

The first number of the sequence is 0, the second number is 1, and each subsequent number is equal to the sum of the previous two numbers of the sequence itself, yielding the sequence 0, 1, 1, 2, 3, 5, 8, etc. In mathematical terms, it is defined by the following recurrence relation:
Name:  fib-bzupagesdotcom.png
Views: 149
Size:  2.2 KB
Reply With Quote
  #3  
Old 06-10-2008, 11:13 PM
Sheraz's Avatar
SheikhooOo

 

Join Date: Feb 2008
Location: Outside home.... :D
Age: 29
Posts: 19
Contact Number: 0332-4148721
Program / Discipline: BSIT
Class Roll Number: 07-16
Sheraz is on a distinguished road
Default Re: [Assignment] Recursive Function for Fibonacci Numbers in C


ASSALAM_O_ALAIKUM

THANX YARA, THANK YOU VERY MUCH...........

"MEIN AIEWEIN TAY NAHI TERAY UTTAY MARDA WAYYY"

MERI JAAN KAL AGAR EASILY POSSIBLE HO TO DATA STRUCTURES KI BOOK LETAY AANA.....
LOVE YOU.
$$
Reply With Quote
Reply

Tags
assignment, c++, fibonacci, function, numbers, recursive


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbers are cool, numbers only containing one's thecool Chit Chat 0 04-10-2011 04:07 PM
Program to compute the fibonacci series bonfire Object Oriented Programming 0 09-03-2011 12:09 AM
Help me:for Assignment.Program which use arithmatic Operations on Complex Numbers sohail Object Oriented Programming 2 19-12-2008 11:55 AM
Assignment#4 Model for webdevelopment assignment .BZU. Web Development 2 18-11-2007 06:49 PM
Function BSIT07-01 Math for IT-I 1 16-11-2007 11:42 PM

Best view in Firefox
Almuslimeen.info | Cloud Computing | Dedicated server hosting
Note: All trademarks and copyrights held by respective owners. We will take action against any copyright violation if it is proved to us.

All times are GMT +5. The time now is 04:58 AM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.