Write a program that inputs values into a one-dimensional array and finds odd and even Numbers.
Write a program that inputs values into one-dimensional array and finds out the total number of odd and even values entered into one-dimensional array. So let’s Write Code: Let’s build logic First: Algorithm for code: Step 1: Start Step 2: Declare an array and variables i, odd and sum. Step 3: Initialized i, odd and…