Question: Write a C program to do the following: a- read in an input integer from user and compute the factorial of the input Fact(n)= n*(n-1)*(n-2)*...*3*2*1

 Write a C program to do the following: a- read in

Write a C program to do the following: a- read in an input integer from user and compute the factorial of the input Fact(n)= n*(n-1)*(n-2)*...*3*2*1 Test your code and provide a snapshot of a working input such as n=6, and invalid input such as n= - 3, and n=A 1 Provide the code as part of your work paper b- Write a code that would generate 5 rand numbers between (1-12) in a loop and display a table with factorial values of the random numbers. The code should prompt user for an input of rows of table to display. Possible range of rows (1-5). The table example above was shown for an input of 3 rows supplied by user. Example of a run for the case of 3 rows Test your code and provide a snapshot of a working input such as rows R=3, and invalid input such as R= - 3, R=2.3, and R=A1 Provide the code as part of your work paper

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 Databases Questions!