Write a program that inputs values into an array. It multiplies the even values of elements with 5, odd values with 4 and adds the new values of an array.
Write a program that inputs values into an array. It multiples the even values of elements with 5, odd values with 4 and adds the new values of array. Suppose a user inputs the following values in an array:2, 3, 5, 6, 7After multiplying the even values of elements with 5, odd values with 4,…