#include <iostream>
#include <math.h>
#include <time.h>
using namespace std;
bool Chet(int x)
{
if ((x) && (!(x%2))) return true;
else return false;
}
int Chetmas(int * mas, int raz)
{
int count=0;
for (int i=0; i<raz; i++)
if (Chet(mas[i])) count++;
return count;
}
int main()
{
int mass[5];
srand(time(NULL));
for (int i=0; i<5; i++)
{
mass[i]=rand()%20;
cout << mass[i]<<" ";
}
cout << endl;
cout << Chetmas(mass, 5);
}