Thread
:
[Assignment] Recursive Function for Fibonacci Numbers in C
View Single Post
#
1
06-10-2008, 10:09 PM
BSIT07-01
Addicted to Computer
Join Date: Sep 2007
Location: ------------
Age: 34
Posts: 1,309
Contact Number: ---------------
Program / Discipline: BSIT
Class Roll Number: 07-01
[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); }
BSIT07-01
View Public Profile
Send a private message to BSIT07-01
Visit BSIT07-01's homepage!
Find all posts by BSIT07-01