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

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.