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; }