As in the array of n elements to find the product of elements located between the maximum and minimum values, the block diagram should be compiled.

    1 answer 1

    1st pass of the array - determining the maximum, minimum (indices).
    2nd pass - counting from a smaller index to a larger one.

    • Only not the sum, but the product. - skegg
    • Well, yes, I overlooked it, but it does not matter. - metazet