#include <stdio.h>

int main() {
    int arr[10];
    int i=0,even=0,odd=0;
    printf("enter the elements of the array: ");
    for (i=0;i<10;i++){
        scanf("%d",&arr[i]);
        if (arr[i]%2==0){
        even++;
    }
    else
    {
        odd++;
    }
    }
    
    printf("\nthe number of even numbers in the array is %d",even);
    printf("\nthe number of odd numbers in the array is %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: