Wednesday, July 20, 2011 | By: nika perales

Recursive Function in C to generate Fibonacci Numbers

int Fibonacci(int n)
{
if(n==0||n==1)
return 1;
else
return Fibonacci(n-1)+Fibonacci(n-2);
}
 

0 comments:

Post a Comment