Write a program that assigns values to the individual elements of an array and displays the values of the array.
Write a program that assigns values into the individual elements of an array and displays the values of the array. So let’s Write Code: Let’s build logic First: Algorithm for code: Step 1: Start Step 2: Declare an array. Step 3: Initialize Array elements. Step 4: Print Elements. Step 5: Finish Program Code: Write a…