C program to find factorial of a number using user-defined function

C program to find factorial of a number using user-defined function

Output:

Enter a number to get its factorial:
5
The factorial of 5 is 120

Implementation: