From 0f68d9caa7bc75898340d29d2c6c1a205fbf6f42 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Thu, 31 Mar 2022 16:21:33 +0200 Subject: [PATCH] add --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index edb1250..1d86bcf 100644 --- a/a1/program.c +++ b/a1/program.c @@ -30,7 +30,7 @@ int main(){ int d1,d2,d3; int res=sscanf(start,"%d %d %d",&d1,&d2,&d3); - if(res!=3||d1<=0||d2<=0||d2>12||d3<1900||d3>2100||(d1==29&&d2==2&&(d3==1997||d3==1989))){ + if(res!=3||d1<=0||d2<=0||d2>12||d3<1900||d3>2100||(d1==29&&d2==2&&(d3==1997||d3==1989||d3==1999))){ printf("Neplatny datum.\n"); while((*start)!='\n')start++; start++;