Question: *a comment that briefly summarizes what it does. *comments should be added to make the meaning clear. * use C program not C++ *don't copy

*a comment that briefly summarizes what it does.

*comments should be added to make the meaning clear.

* use C program not C++

*don't copy from another answers

Write a C program that calculates and displays the factorial of each element in an integer array. 1. In the main function, the program will ask the user to enter the length of array and the elements of the array. 2. The program should include a recursive factorial function (provided in the lecture slides). int fact(int n); 3. As part of the solution, create a function calculate_fact() with the following prototype. n is the size of the arrays. array a represents the input array, and array b represents the output array. The function calls the fact function to calculate the factorial of an element. void calculate_fact(int a[], int n, int b[]); 4. The main function calls the calculate_fact() function and displays the output. Example: Enter the length of the array: 4 Enter the elements of the array: 2 5 1 3 Output: 2 120 1 6

Example: Enter the length of the array: 6 Enter the elements of the array: 6 2 1 3 2 1 Output: 720 2 1 6 2 1

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!