Răspuns:
#include <iostream>
using namespace std;
int main()
{
int E[10][10], x, y, i, j, P = 1;
cin >> x >> y;
for(i = 1; i <= x; i++)
for(j = 1; j <= y; j++)
cin >> E[i][j];
for(i = 1; i <= x; i++){
for(j = 1; j <= y; j++){
if(i % 2 == 0 && E[i][j] % 2 == 0)
P = P * E[i][j];
cout << E[i][j] << " ";
}
cout << endl;
}
cout << P;
return 0;
}