#include<stdio.h>
#include<conio.h>
void main()
{
  int a[20],o=0,e=0,se=0,so=0,i;
  clrscr();
  printf("enter the data:\n");
  for(i=0;i<20;i++)scanf("%d",&a[i]);
   for(i=0;i<20;i++)
  {
   if(a[i]%2==0)
   {
   e++;
   se+=a[i];
   }
   else
   {
   o++;
   so+=a[i];
  }
  }
  printf("\ntotal even no.=%d",e);
  printf("\ntotal odd no.=%d",o);
  printf("\n sumof the even numbers is %d",se);
  printf("\n sumof the odd numbers is %d",so);
   getch();
  }

