请问这个flag是什么意思
#include <stdio.h>
int main()
{
int sum = 0; //定义计算结果变量sum
int i = 1; //定义循环数字变量i
int flag = 1; //定义符号状态变量flag
//使用while循环
while(i<=100)
{
if(i%2==0)
{
sum=sum-i;
}
else
{
sum=sum+i;
}
i++;
}
printf("sum=%d\n",sum);
i = 1;
sum=0;//重新初始化变量i
printf("i=%d\n",i);
//do-while循环
do{
if(i%2==0)
{
sum=sum-i;printf("sum=%d\n",sum);
}
else
{
sum=sum+i;printf("sum=%d\n",sum);
}
i++;
}while(i<=100);
printf("sum=%d\n",sum);
i = 1;
sum=0;//重新初始化变量i
printf("i=%d\n",i);
//使用for循环
for(i=1;i<=100;i++)
{
if(i%2==0)
{
sum=sum-i;
}
else
{
sum=sum+i;
}
}
printf("sum=%d\n",sum);
return 0;
}