Rewrite-the-factorial-program-Section-2-7-4-using-a-function-C-Programming-Factorial-help
Rewrite the factorial program (Section 2.7.4) using a function. That is, implement a function called Factorial that inputs (i.e., has a parameter) a positive integer n. The function should then compute the factorial of n, and return the result. The function is to have the following prototype:
int Factorial(int n);
After you have implemented this function, test your function by calculating 5!, 0!, 9!, and 3!, and output the results to the console window. The output should be formatted like so:
5! = 120
0! = 1
9! = 362880
3! = 6
Press any key to continue