#include <stdio.h>

int main() {
    int arr[10], i;
    int even,odd;
    for (i=0;i<10;i++){
        scanf("%d",&arr[i]);
    }
    for (i=0;i<10;i++){
        if (arr[i]%2==0){
            even++;
        }
    else{
        odd++;
    }
    }
    printf("\nthe number of even elements are: %d",even);
    printf("\nthe number of odd elements are: %d",odd);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: