Question: Write a program to calculate factorial of a number using user-defined factorial function and while loop in php. for example factorial(5) = 5*4*3*2*1 = 120
Write a program to calculate factorial of a number using user-defined factorial function and while loop in php.
for example factorial(5) = 5*4*3*2*1 = 120
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
