Question: Please I want the code in c program Write a program that creates a single dimensional array of size 20 long e. elements, and populates
Write a program that creates a single dimensional array of size 20 long e. elements, and populates each element with the factorial of the index. So the contents of the array will be: 1, 1, 2, 6, 24, 120, (the factorials of 0, 1, 3, 4,5, Make sure you create a function long factorial(int n) that computes the factorial of a number n, and returns it back for you. Notice how the factorials increase very fast as the index increases. You will be graded as follows for each problem (20 points each): 10 points for the correctness of the logic. 2 points for using proper data type usage, and using meaningful names for variables. 2 points for documentation (inserting proper comments) 2 points for an efficient implementation of your logic. 4 points for a professional judgment of your overall solution: This is the grader's professional evaluation of the quality of your work. This gives some flexibility to the grader
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
