#include <iostream>
#include <time.h>
#include <cstdlib>
using namespace std;
void funkcja(int tab[])
{
int parzyste=0, nieparzyste=0;
for(int i=0; i<30; i++)
{
if(tab[i]%2==0)
{
parzyste++;
}
else
{
nieparzyste++;
}
}
cout << "parzyste: "<<parzyste<<"\nnieparzyste"<<nieparzyste;
}
int main()
{
srand(time(0));
int tab[30];
for(int i=0; i<30; i++)
{
tab[i]=rand()%11-5;
}
funkcja(int tab[]);
return 0;
}