#include
#define N 10
int i;
void sum(int a[])
{
int sum_num=0;
for(i=0; i{
sum_num+=a[i];
}
printf("和=%d\n",sum_num);
}
void check(int a[])
{
int one=0,two=0;
printf("奇数:");
for(i=0; i{
if(a[i]%2==0)
two++;
else
{
printf("%d ",a[i]);
one++;
}
}
printf("\n奇数个数=%d\n偶数个数=%d",one,two);
}
int main()
{
int num[N]= {0};
for(i=0; iscanf("%d",&num[i]);
sum(num);
check(num);
}