帮我看看这段程序哪里错了
#include<stdio.h>#include<windows.h>
int main()
{
int i,j=0;
printf("enter a number:");
scanf("%d",&i);
while(i!=-1)
{if(i>=j)
j=i;
else
{printf("enter a number:");
scanf("%d",&i);}}
printf("the biggest is:%d\n",j);
system("pause");
return 0;}
输入一个数就没反映了!