Question: Write a C program that allows a user to enter an integer n . The program will then compute the factorial of n . Note

Write a C program that allows a user to enter an integer n. The program will then compute the factorial of n. Note that the factorial of 0 is 1, and the factorial of 1 is 1.
What is the factorial of n? n*(n-1)*(n 2)*(n 3)........*1
For example, 6 factorial denoted as 6!=6X5X4X3X2X1=720
Submit your code and output for the number 6.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!