Răspuns :
1. a) int x[50];
b) char v[25];
c) int x[200];
int i, n=0;
for (i=1; i<=200; i++)
{ x[i]=n;
n++;
if (x[i]==3) n=0;
}
// Aici nu sunt sigur, nu înțeleg bine cerința
2. #include <iostream>
using namespace std;
int main()
{ int s=0, i, v[100], n;
cin >> n;
for (i=1; i<=n; i++)
cin >> v[i];
for (i=1; i<=n; i++)
if (v[i]>0) s=s+v[i];
cout << s;
return 0;
}
3. #include <iostream>
using namespace std;
int main()
{ int p=1, i, v[100], n;
cin >> n;
for (i=1; i<=n; i++)
cin >> v[i];
for (i=1; i<=n; i++)
if ((v[i]%2)!=0) p=p*v[i];
cout << p;
return 0;
}
4. #include <iostream>
using namespace std;
int main()
{ int nr=0, i, v[100], n;
cin >> n;
for (i=1; i<=n; i++)
cin >> v[i];
for (i=1; i<=n; i++)
if (v[i]==0) nr++;
cout << nr;
return 0;
}