Write a C program to input elements in array from user and count even and odd elements in array. How to find total number of even and odd elements in a given array using C programming. Logic to count even and odd elements in array using loops.
Example
Input
Input array: 1 2 3 4 5 6 7 8 9
Output
Total even elements: 4 Total odd elements: 5