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 script for factorial
  • perl programs for factorial
  • find factorial perl
  • perl program to find factorial for n numbers
  • perl + factorial
  • perl factorical
  • perl program for factorial of a number
  • perl scripting for factorial of a number
  • factorial program in PEARL
  • calculate factorial in perl

No comments yet.

Leave a Comment