Given a one dimensional array and we have to print its EVEN and ODD elements separately.
Example:
Input:
Given array (elements will be read in program): 10 11 12 13 14
Output:
Odd numbers in the array are : 10 12 14
Even numbers in the array are : 11 13
Program to print EVEN and ODD elements from an array in java
Output
need an explanation for this answer? contact us directly to get an explanation for this answer