The program to count the number of even and odd elements in an array is discussed here. Given an array of integers, count the total number of odd elements and even elements in the array and display them as output.
Input format:
Output format:
The output consists of integers
Sample Input:
3 (number of elements of the array)
1 (array elements)
2
3
Sample Output:
Odd: 2
Even: 1
@@coding::1@@
Recommended Programs