From 94286eb34ec5e42c1ff65f614b1d656c01b2bfd6 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Thu, 31 Mar 2022 09:39:11 +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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/a1/program.c b/a1/program.c index fb31fa0..b79491d 100644 --- a/a1/program.c +++ b/a1/program.c @@ -1,4 +1,3 @@ -key, [3/31/2022 11:20 AM] #include #include #include @@ -102,7 +101,6 @@ int main(){ s++; } } -key, [3/31/2022 11:20 AM] char *endptr = NULL; char *start = riadok1; int number[s]; @@ -165,8 +163,7 @@ key, [3/31/2022 11:20 AM] } else if (number[j] > 24){ number[j] = number[j] + 7 - 31; -key, [3/31/2022 11:20 AM] -number[j + 1]++; + number[j + 1]++; } } else if (number[j + 1] == 4 && number[j] > 0 && number[j] <= 30){