有难度 不知道C语言的东西哦 不好意思
void main(){ int a[10],sum1=0,sum2=0,sum=0,i;for(i=0;i<10;i++){scanf("%d\n",&a[i]);if(a[i]%2==0)sum1+=a[i];elsesum2+=a[i];sum+=a[i];}printf("偶数之和=%d,奇数之和=%d,总和=%d\n",sum1,sum2,sum);}