From 7d361fcb971db7369a6fcfeca9b80dbbb7134718 Mon Sep 17 00:00:00 2001 From: Yaroslav Orlianskyi Date: Thu, 31 Mar 2022 09:43:29 +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 9203077..a6bbd5b 100644 --- a/a1/program.c +++ b/a1/program.c @@ -115,7 +115,7 @@ int main(){ } need = 0; for (int j = 0; j < s; j = j + 3){ - if (number[j + 1] > 12 number[j + 1] < 0 number[j] < 1 number[j] > 31 number[j + 2] < 1900 number[j + 2] > 2100){ + if (number[j + 1] > 12 && number[j + 1] < 0 && number[j] < 1 && number[j] > 31 && number[j + 2] < 1900 && number[j + 2] > 2100){ number[j] = 0; number[j + 1] = 0; number[j + 2] = 0;