#include <iostream>using namespace std;main(){ int a[100],s=0; cout << "Introduceti n: "; int n=0; cin >> n; for (int i=1; i<n+1; i++) { cout << "A[" << i << "]= "; cin >> a[i]; } for (int i=1; i<n+1; i++) { if ((a[i]>0) && (i%2==0)) s+=a[i]; } cout << "Suma este: " << s;}