Write C++ program to put even and odd elements of array in two separate array
belongs to collection: C++ language array programs with an examples
All Answers
total answers (1)
belongs to collection: C++ language array programs with an examples
total answers (1)
I have used CodeBlocks compiler for debugging purpose. But you can use any C++ programming language compiler as per your availability.
Result:
Enter size of the array: 10
Enter elements in the array: 1
2
3
4
5
6
7
8
9
10
Elements of even array: 2 4 6 8 10
Elements of odd array: 1 3 5 7 9
need an explanation for this answer? contact us directly to get an explanation for this answer