Web Based Perl script to Find Factorial of a Number!

This is a basic Web-based Perl Script that helps school and college students to improve their knowledge in Perl Scripting.

If you don’t know what is factorial, here is a small explanation,

Multiplying the given integer with the sequence of descending positive integers is called factorial.  For example,

5! is 5 x 4 x 3 x 2 x 1 = 120
So the value of 5! is 120

We can also find the values the other way around ie.,
5! is 1 x 2 x 3 x 4 x 5 = 120

In this program, we are going to follow the above second method to find the value of the n! (n factorial)

Now, let’s see the Perl Script here:

Just go through the inline comments to understand the script.

Related Posts

Leave a Reply