#include<conio.h>
#include<iostream.h>
int main()
{
int input,even=0,odd=0,i;
for (i=0;i<10;i++)
{
cout<<"enter";
cin>>input;
if(input%2==0)
even++;
else
odd++;
}
cout<<"odd"<<odd<<"even"<<even;
getch();
return 0;
}
this code fully working, but my problem now is how do i put that in a function with array? i have to add array and functions. help