Factorial Calculation Script

Factorials Calculation Script is use to find the factorial number between N and 1.N is the product.

Demo :



Type Number  

Example :

Type Number : 10

if you need to factorial calculation number code take and use to your website.


<?php
  $num = 100;
  $factorial = 1;
  for ($x=$num; $x>=1; $x--)
  {
   $factorial = $factorial * $x;
   }
  echo "Factorial of $num is $factorial";
?>

In the above code is used to factorial number calculation .here have set default 100 for $num variable. Finanlly Output will Display Factorial of 100 is 9.332621544 3944E+157.

Free Download Script :

If you need Factorial Calculation Script click and download from following link.

Download




Content