Help for this page

Select Code to Download


  1. or download this
    sub fib {
      my $nth = shift;
    ...
      return $nth if $nth <= 1;
      return fib( $nth - 1 ) + fib( $nth - 2 );
    }