int i,sum;
i=1,sum=0;
while(i<=100)
{ sum+=i*i;//初始sum=0,每次循环,sum=sum+i*i
i+=1;
}
int cou = 0;
int num = 0;
while (num <= 100)
{
cou = cou + num;
num++;
}
main()
{
int i,sum;
i=1;
sum=0;
while(i<=100)
{
sum+=i;
i++;
}
printf("%d\n",sum);
}