Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

recursive fibonacci in c

int fibbonacci(int n) 
{
   if(n == 0 || n == 1)
      return n;
   else
      return (fibbonacci(n-1) + fibbonacci(n-2));
}
Source by www.edureka.co #
 
PREVIOUS NEXT
Tagged: #recursive #fibonacci
ADD COMMENT
Topic
Name
5+5 =