Simple Factorial program in PHP

New Functions in PHP 5

Dear Friends,

some of my friend those trying to learn PHP and trying to write small – small programs..

for those I am going to write down a simple factorial program using PHP…. Look at the below function..

 

Output of this Program :

1 = 1 2 = 2 3 = 6 4 = 24 5 = 120 6 = 720 7 = 5040 8 = 40320 9 = 362880

 

In case of any doubt .. dont hesitate in contacting  me .. You can leave a comment in comments section….

happy wheels

Share with Friends