#include<stdio.h>
int main()
{
int n,even=0,odd=0;
float sumodd=0,sumeven=0;
scanf(“%d”,&n);
while(n!=0)
{
if(n%2==0)
{
even++;
sumeven=sumeven+n;
}
else
{
odd++;
sumodd=sumodd+n;
}
scanf(“%d”,&n);
}
printf(“\nTotal even num are %d nd Their Average is %f \n “, even, sumeven/even );
printf(“Total odd num are %d nd Their Average is %f \n “, odd, sumodd/odd);
return 0;
}