#include<stdio.h>

int countodd(int arr[], int n);

int main() {
    int arr[10];
  printf("enter an arr[] \n");
  for(int i=0;i<10;i++){
  scanf("%d",&arr[10]);
  }
  printf("%d", countodd(arr,10));
    return 0;
}

int countodd(int arr[], int n){
    int count=0;
    for(int i =0; i<n; i++) {
        if(arr[i] % 2 != 0) {   //i.e odd number
            count++;
}
} 
return count;
}

Embed on website

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