填空题

下列程序的功能是计算1~100的整数的累加和。
main()
int i, sum=______;
i=1;
for(______)
sum+=i;
i++;

printf("sum=%d\n",______);

【参考答案】

0 ;sum<=100; sum