Răspuns:
punctul a)
#include <iostream>
using namespace std;
int main() {
int n, m, a[100], b[100], i;
cout <<"n=";
cin >> n;
for(i = 0; i < n; i++)
{
cout<<"a["<<i<<"]=";
cin>>a[i];
}
cout <<"m=";
cin >> m;
for(i = 0; i < m; i++)
{
cout<<"b["<<i<<"]=";
cin>>b[i];
}
cout<<"Numerele pare din sirul a sunt:";
for(i = 0; i < n; i++)
{
if(a[i] % 2 == 0)
cout<<a[i]<<" ";
}
return 0;
}