Lets write a C program to display even and odd elements of an array, along with their count. Related Read:…