From d0df296005c71e1fa7d59b7900fe351b6906a9c2 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Wed, 9 Mar 2022 15:23:30 +0100 Subject: [PATCH] ASD --- du2/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;