#include<stdio.h>
#include<conio.h>
void main()
{
	int i,a[10],sum=0;
	clrscr();
	printf("enter the number");
	for(i=0;i<5;i++)
	{
	  scanf("%d",&a[i]);
	}
	for(i=0;i<5;i++)
	{
	  if(a[i]%2==1)
	  {
	    sum=sum+a[i];
	  }
	}
	printf("sum of odd element=%d",sum);
	getch();
}

Output
enter the number1
2
3
4
5
sum of odd element=9