Help for this page

Select Code to Download


  1. or download this
    use strict;
    
    ...
        return &fib($n-1) + &fib($n-2) if $n>1;
        return 1;
    }
    
  2. or download this
    int fib(int n) {
        if( n > 1 )
    ...
    
        return 0;
    }