I need to keep track of odd and even number which will be accepted from the user 10 time after the user entering them I have to print something like odd number = "The number of odd numbers from what she/he is inputed"
and even numbers = "The number of even numbers she has inputed"
here is my code but its not working hey
void main()
{
int Num;
cout << "EVEN - ODD " << endl;
cout << "Enter a set of numbers between 1 and 100" << endl;
int x;
int oddCount, evenCount;
int y = 0;
for(x = 1; x <= 10; x++)
{
cin >> Num;
if((Num % 2) == 0)
{
oddCount++;
cout << "Total Even numbers = " << x << endl;
}
else
{
evenCount;
cout << "Total Odd numbers = " << y << endl;
}
}
}