Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

factorial program in PHP

<?php
$no= 7;  
$fact= 1;  
$a=$no;
for($a=$no; $a>=1; $a--)  
{  
  $fact= $fact* $a;  
}  
$msg="Factorial of $no is $fact";  
?>  
<p style="color:#66CC00;font-size:40px;font-family:Mistral;">
<?Php if(isset($msg))
{
echo $msg;
} ?>
</p>
Source by technosmarter.com #
 
PREVIOUS NEXT
Tagged: #factorial #program #PHP
ADD COMMENT
Topic
Name
8+3 =