From c752206ebc25678fbcadaa870179480521ee7af8 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Mon, 2 Mar 2020 19:35:29 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu2/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du2/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du2/program.c b/du2/program.c index 4bbfac0..270fbcc 100644 --- a/du2/program.c +++ b/du2/program.c @@ -7,7 +7,7 @@ int main() int i = 0, max_hodnota = 0, value = 0; - while(value >= 0 || i <= 49 || value != EOF){ + while(value >= 0 && i <= 49 && value != EOF){ int r = scanf("%d",&value); if(value <= -1){