#include<stdio.h>
int main()
{
int i=1;
int sum=0;
while(i<=100)
if(i%2=0)
sum-=i;
}
else
sum+=i;
i++;
printf("sum=%d\n",sum);
return 0;
判断用==
懂了就采纳