note 118843 deleted from ref.math by salathe
| From: | salathe@php.net | Date: | Tue, 16 Feb 2016 12:43:05 +0000 |
| Subject: | note 118843 deleted from ref.math by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-204955@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
My Factorial code
let $B as the number you want
like 5!
5 will be $B
Input:
$B=5
Code:
$F=$B;
$FA=$B;
while ($FA!=0)
{$F=$F*$FA--;}
echo $B;
echo "!=";
echo $F/$B;
}
Output:
5!=120