1 2 3 4 5 6 7 8 9
int Proiz ( int s[],int l) { int pr = 1; for(int i=0; i<l; i+=2) { pr*=s[i]; } return pr; }