<?php
$n = 5;
$factorial = 1;
for($i=$n;$i>=1;$i--){
$factorial =$factorial * $i;
}
echo "Factorial is :- " . $factorial;
?>
<?php
$n = 5;
$factorial = 1;
for($i=$n;$i>=1;$i--){
$factorial =$factorial * $i;
}
echo "Factorial is :- " . $factorial;
?>
0Comments
Thanks you for commenting your questions. I will see question and respond you.