From 30e0ca4e1b4377a93a40a7fdee0a39f15e68af9a Mon Sep 17 00:00:00 2001 From: Vladyslav Korzun Date: Thu, 23 Mar 2023 18:00:31 +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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/a1/program.c b/a1/program.c index 0b2e16c..409f91d 100644 --- a/a1/program.c +++ b/a1/program.c @@ -46,6 +46,9 @@ int main() { if(yyyy <= 0){ che = 1; } + if(yyyy < 1900 || yyyy > 2100){ + che = 1; + } } counter++; zaciatok_cisla = koniec_cisla + 1;