#include<stdio.h>
int main(void)
{
int i;
int sum1=0;
int sum2=0;
for(i=0;i<=5;++i){
if(i%2==1)//如果i可以除2余数为1,则i为奇数
sum1=sum1+i;
else
sum2=sum2+i;
//printf("i=%d\n",i);
//printf("sum1=%d\n",sum1);
}
printf("sum1=%d\n",sum1);
printf("sum2=%d\n",sum2);
return 0;
}