Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Perl: Calculate the factorial of a numbe

Perl: Calculate the factorial of a numbe
{filelink=14096}

    my @factorial = (1);
    $MAX_FACT=9;
    for my $n (1..$MAX_FACT) {
        $factorial[$n] = $n * $factorial[$n-1];
    }
    print $factorial[5]  ;

Users who found this page were searching for:

  • perl factorial
  • perl programming factorial n
  • perl factorical
  • simple GUI program that calculate factorial
  • recursive factorial in perl
  • program on factorial in perl
  • perl script to calculate factorial
  • to find n factorial in perl
  • perl+recursive+function+++factorial
  • perl factorial

No comments yet.

Leave a Comment