home *** CD-ROM | disk | FTP | other *** search
/ ftp.disi.unige.it / 2015-02-11.ftp.disi.unige.it.tar / ftp.disi.unige.it / pub / .person / CataniaB / teach-act / laboratorio / lab-26-4-99 / ese5.c next >
Text File  |  1999-05-25  |  140b  |  13 lines

  1. /* implementazione della funzione di Fibonacci */
  2.  
  3.  
  4. int fib(int n)
  5.  
  6. {
  7.     if (n==0 || n==1)
  8.         return 1;
  9.     else
  10.         return fib(n-1) + fib(n-2);
  11. }
  12.  
  13.