From 134b7e2d642717b3dd585eeece79b35a4bf81d56 Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Tue, 9 Mar 2021 19:46:51 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du2/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BMW M5 Love --- du2/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du2/program.c b/du2/program.c index 5636a8d..dffa963 100644 --- a/du2/program.c +++ b/du2/program.c @@ -25,7 +25,7 @@ int main() { int max_number = 0; int max_position = 1; - for (int i = 0; fgets(glass[i], 20, stdin) != NULL; i++){ + for (int i = 0; fgets(glass[i], 20, stdin); i++){ for (int j = 0; j < strlen(glass[i]); j++){ if (!isdigit(glass[i][j]) || atoi (glass[i]) < 1){ goto LABEL;