From 74aa4959ada7e1620aa3d1f5dd40a86a7361bf7c Mon Sep 17 00:00:00 2001 From: Vladyslav Korzun Date: Thu, 23 Mar 2023 17:48:24 +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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/a1/program.c b/a1/program.c index 6b652c7..a24d37e 100644 --- a/a1/program.c +++ b/a1/program.c @@ -41,6 +41,10 @@ int main() { zaciatok_cisla = koniec_cisla + 1; } } + if(counter != 3){ + printf("Neplatny datum.\n"); + break; + } //printf("%d %d %d\n", dd, mm, yyyy); time_t t = time(NULL); struct tm *tm_date = localtime(&t);