View Single Post
  #1  
Old 06-10-2008, 10:09 PM
BSIT07-01's Avatar
BSIT07-01 BSIT07-01 is offline
Addicted to Computer


 
Join Date: Sep 2007
Location: ------------
Age: 34
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 :)
Code:
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