C program to print even numbers

C program to print even numbers

Input:

Enter the size of the array:
5
Enter the numbers of the array:
1 2 3 4 5

Output:

2 4

Implementation: