Răspuns:
Explicație:
a)#include <iostream>
using namespace std;
int v[100], vPar[100], n, m=0, i, min;
int main ()
{
cout<<"Cate numere are sirul?"<< std::endl;
cin >>n;
for (i=1;i<=n;i++)
{
cout <<"v["<<i<<"]=";
cin >>v[i];
if (v[i]%2 == 0)
{
vPar[++m]=v[i];
}
}
int min = vPar[1];
for (i=2;i<=m;i++) {
if (vPar[i]<min){
min = vPar[i];
}
}
cout<<"Cel mai mic element par este: "<<min;
}
b)