# include <stdio.h>
void main ()
{
int i,sum1,sum2,a[9];
sum1=0;
sum2=0;
while(i<=8)
{
scanf("%d",&a[i]);
if(i%3==2)
printf("\n");
if(i%4==0)
sum1=sum1+a[i];
if(i%2==0 && i>0 && i<8)
sum2=sum2+a[i];
}
printf("sum1=%d\n",sum1);
printf("sum2=%d\n",sum2);
}
这是我的理解,你可以参考一下!嘻嘻!