为什么程序不能运行
#include <stdio.h>
void main()
{
long sum=0l;
int count=0;
int i=0;
printf("\nEnter the number of integer you want to sum:");
scanf("%d",&count);
for(i=count;i>0;sum+=count--);
printf("\nTotal of the first %d number is %ld\n",count,sum);
}
输入数据后,既不显示错误,也不显示最终结果,把count改成i就可以,这是为什么呢