Write a program that initializes values 2, 6, 3, 5, 4 and 7 in one-dimensional array and computes the factorial.
Write a program that initializes values 2, 6, 3, 5, 4 and 7 in one-dimensional array. It computes the factorial of value of each element of the array and displays the result on the screen. So let’s Write Code: Let’s build logic First: Algorithm for code: Step 1: Start Step 2: Declare and initialize an…