Subject: PHP

Factorial Using Recursion

Write a PHP function to calculate the factorial of a number using recursion. Test the function with $num = 6.

Select file or drag and drop

PNG, JPG, SVG

Preview