C program to print even and odd numbers

C program to print even and odd numbers

Output:

Enter the size of the list:
10
Enter the elements of the list:
1 2 3 4 5 6 7 8 9 10
The even numbers in the list are:
2 4 6 8 10
The odd numbers in the list are:
1 3 5 7 9

Implementation: