Help for this page

Select Code to Download


  1. or download this
    sub fact4{  
      #no recursion at all
    ...
      }
      return $n;
    }
    
  2. or download this
    sub fact5{  
      #no recursion at all
    ...
      }
      return $n;
    }
    
  3. or download this
    sub fact6{
      #divide and conquer
    ...
        return Math::BigInt->new($m);
      }
    }