Given an array of 10 integers, find the product of the array elements with even indices.

program zz1;
var mas: array [1..10] of integer;
i, p: integer;
begin
for i: = 1 to 10 do // enter the given ten numbers into the array from the keyboard
read (mas [i]);
p: = 1; // set the initial value of the product
for i: = 1 to 10 do
if i mod 2 = 0 then p: = p * mas [i]; // check if the index of the number in the array is divisible by 2, i.e. is even, then we multiply this number from the array by the product
write (p); // display the answer
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.