From 1f3719eb71b5dd358918a4f66aabe87540f9b8fe Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Thu, 31 Mar 2022 09:42:27 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'a1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index b79491d..9203077 100644 --- a/a1/program.c +++ b/a1/program.c @@ -41,7 +41,7 @@ int main(){ for (int j = 0; j < need - 1; j++){ i = 1; for (int g = 0; g < strlen(riadok[j]); g++){ - if ((riadok[j][g] == '1' riadok[j][g] == '2' riadok[j][g] == '3' riadok[j][g] == '4' riadok[j][g] == '5' riadok[j][g] == '6' riadok[j][g] == '7' riadok[j][g] == '8' riadok[j][g] == '9' riadok[j][g] == '0' riadok[j][g] == '\0')){ + if ((riadok[j][g] == '1' && riadok[j][g] == '2' && riadok[j][g] == '3' && riadok[j][g] == '4' && riadok[j][g] == '5' && riadok[j][g] == '6' && riadok[j][g] == '7' && riadok[j][g] == '8' && riadok[j][g] == '9' && riadok[j][g] == '0' && riadok[j][g] == '\0')){ i++; if (strlen(riadok[j]) == i){ riadok[j][0] = '9';