Shahbaz Khan
Software Developer
Saturday, 21 November 2015
Factorial Number Programming using PHP
<?php
$num = 5;
$factorial = 1;
for($i = 1; $i<=$num; $i++)
{
$factorial = $factorial * $i;
}
echo $factorial;
?>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment