编辑代码

#include <stdio.h>
int main() 
{
int i,j=0;
for(i=1;i<=100;i++)
j=j+i;
printf("%d",j);
return 0;
}