From fc1ca7eead902380afddf4289af85b77f95778a7 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 26 Mar 2020 23:17:50 +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 24c6f42..04187b5 100644 --- a/du3/program.c +++ b/du3/program.c @@ -24,7 +24,7 @@ if(m==2){ return 0; } } -if(m>12 || y<0){ +if(m>12 || y<0 || m<=0 || day<=0){ printf("Nespravny datum\n"); return 0; }