The program prompts the user to enter an integer to calculate its factorial. Then, it checks if the entered number is non-negative. If it is, the program calculates the factorial of the number and ...
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) * ...