From 8d5cd6cf2247db3e046d8ac2d4b8c5986fef3c0c Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 26 Mar 2020 11:11:01 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du3/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du3/program.c b/du3/program.c index 60be17b..07dae63 100644 --- a/du3/program.c +++ b/du3/program.c @@ -10,7 +10,7 @@ int day=0; int m=0; int y=0; sscanf(str, "%d.%d.%d", &day, &m, &y); -if(day>28 && m==2 &&(y%400==0 ||(y%100!=0 && y%4==0))){ +if(day>29 && m==2 &&(y%400==0 ||(y%100!=0 && y%4==0))){ printf("Nespravny datum"); return 0; }