Main.php
Download
<?php function factorial($n) { $fact=1; for($i=$n; $i>=1;$i--) { $fact=$fact*$i; } return $fact; } echo factorial(4); ?>
24