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
  • factorial program in PEARL
  • factorial in perl
  • perl array factorial
  • factorial program in perl
  • perl basic programs examples for factorial of number
  • finding factorial of a number in perl
  • perl code for finding factorial number
  • perl script for factorial of a number using until
  • write a perl code to show factorial of a number

No comments yet.

Leave a Comment