int main()
{
int sum = 0;
int i = 1;
while(i<=100)
{ do sum-=i;
while(i%2!=0);
do sum+=i;
while(i%2!=1);
i++;
}
printf("%d\n",sum);
return 0;
do sum-=i;
这段代码会在i=2时就进入无限循环