Hello, i have an exam and i need to make an homework which is:
Is an array of integers. To compile and display a different array containing only
the even positive numbers from the first array.
1 2 3 4 5 6 7 8 9 10 11 12
|
#include <iostream>
using namespace std;
int main()
{int x;
cout<<"Type the array of integers:\n";
cin>>x;
system("pause");
return 0;
}
|
that's the thing i could make :X
but i guess this is not for me ... so could anyone help me, please.
Thanks in advice.
Last edited on
I would also read about the modulus operator (%). That might help you solve this problem.