#include <iostream>
using namespace std;
int main()
{
int a[15], i;
setlocale(LC_ALL, "Russian");
cout << "Массив (15): ";
for (i = 0; i < 15; i++)
cin >> a [i];
cout << "\nЧетные: ";
int p = 1;
for (i = 0; i < 15; i++) {
if (a[i] % 2 == 0 && a [i] != 0) {
cout << a[i] << " ";
p *= a[i];
}
cout << "\nПроизведение = " << p << endl;
getchar;
#include <iostream>
using namespace std;
int main()
{
int a[15], i;
setlocale(LC_ALL, "Russian");
cout << "Массив (15): ";
for (i = 0; i < 15; i++)
cin >> a [i];
cout << "\nЧетные: ";
int p = 1;
for (i = 0; i < 15; i++) {
if (a[i] % 2 == 0 && a [i] != 0) {
cout << a[i] << " ";
p *= a[i];
}
}
cout << "\nПроизведение = " << p << endl;
getchar;
}