diff --git a/du2/program.c b/du2/program.c index 613ad12..d6d6930 100644 --- a/du2/program.c +++ b/du2/program.c @@ -10,7 +10,7 @@ int main(){ while(1){ int value = 0; int r = scanf("%d",&value); - if(r == EOF || r < 0) + if(r < 0) continue; if (r == 1){ results[i] = value;