Recursive approach have been used to write the program. The factorial of a non-negative number,n, is computed as the product of all integers between 1 and n (both inclusive). factorial(n)=n * (n-1) * ...