为什么输入0程序没有跳出来?
#include <stdio.h>int main ()
{
int i,n;
i=0;
printf("请输入一串数字,以0表示结束:\n");
scanf("%d",&n);
while(n!=0)
{
if(n>0)
i++;
if(n<0)
i++;
}
printf("%d\n",i);
return 0;
}
2013-11-16 00:20

2013-11-16 07:42
2013-11-16 13:10
2013-11-16 19:25
2013-11-16 22:06
2013-11-17 16:41