hi, I'm trying to write a program that separate an array into 2 arrays, odd and even numbers. but I don't know how.
can you please help? I'm stuck and don't know how to continue.
This is what i have so far
//this program accepts 10 integers, stores in an array.
//the array will then be separated into 2 arrays of odd and even data values.
#include <iostream.h>
//prototype
void EvenNumber(int);
void OddNumber(int);
void main(void)
{
int array[10], count, largest, smallest;
cout << "enter 10 values:\n";
for (count = 0; count < 10; count++)
{
cout << "Enter an integer value:";
cin >> array[count];
}