第1个回答 推荐于2018-03-13
main()
{
int s = 1;
for (int i = 2; i <= 100; i++)
s += i * i;
printf("%d", s);
}
main()
{
int s = 0, n = 100;
while(n--)
s += (n+1) * (n+1);
printf("%d", s);
}
main()
{
int s = 0, n = 100;
do
{
s += n * n;
}
while(--n);
printf("%d", s);
}本回答被网友采纳