//输入n个正整数,输出其中偶数的和,以及奇数的个数
#include "stdio.h"
void main()
{int a[1000],i;
long int sum1=0,sum2=0;
printf("请输入所求的数");
for(i=0;a[i]=;i++){
scanf("%d",&a[i]);
if(a[i]%2==0) sum2+=a[i];
esle sum1+=a[i];}
printf("偶数之和:%ld \n奇数之和: %ld \n ",sum1,sum2);
}