#include <iostream>
using namespace std;
int main()
{
const int n=10;
int p=1,a[n];
cout<<"Enter massiv:"<<endl;
for(int i=0;i<n;i++)
cin>>a[i];
if(i%2!=0)
p*=a[i];
}
cout<<"p="<<p;
return 0;
#include <iostream>
using namespace std;
int main()
{
const int n=10;
int p=1,a[n];
cout<<"Enter massiv:"<<endl;
for(int i=0;i<n;i++)
{
cin>>a[i];
if(i%2!=0)
p*=a[i];
}
cout<<"p="<<p;
return 0;
}