Home
Home
php
PHP program to print Factorial of any number
PHP program to print Factorial of any number
Nitin Joshi
September 13, 2019
PHP program to print Factorial of any number
<?php
$number = 6; /*number to get factorial */
$fact = 1;
for($k=1;$k<=$number;++$k)
{
$fact = $fact*$k;
}
echo "Factorial of $number is ".$fact;
?>
Post a Comment
0 Comments
Search This Blog
Popular Posts
PHP program to find second highest number in an array
September 13, 2019
PHP Program to find whether a year is LEAP year or not
September 13, 2019
How do I embed CSS in HTML?
September 13, 2019
Which is the best website design company in Delhi/NCR? - Rocking Marketer
September 20, 2019
Which is the best SMO Company in Delhi? - Rocking Marketer
September 20, 2019
0 Comments