From e32a709a681c81f4e4b48efb5f62ee26b8cddf51 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Wed, 9 Mar 2022 15:14:09 +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 e5aaff7..21a72a5 100644 --- a/du2/program.c +++ b/du2/program.c @@ -11,7 +11,7 @@ int main(){ int value = 0; int r = scanf("%d",&value); if (r == 1){ - if(r < 0 && r > 1000) + if(r < 0 || r > 1000) continue; results[i] = value; if(max < results[i]){