#include <stdio.h>

int main() {
    int arr[20];
    int i,N;
    printf("enter size of array\n");
    scanf("%d\n",&N);
    printf("enter %d elements in array:",N);
    for(i=1;i<=N;i++)
    {
        scanf("%d",&arr[i]);
    }
    printf("enter elements in array are:\n ");
    for(i=1;i<=N;i++)
    {
        if(arr[i]%2==0)
        printf("%d\n",arr[i]);
    }
    return 0;
}

Embed on website

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