Изменить 'du3/program.c'

This commit is contained in:
Pavlo Tverdyi 2020-03-26 23:16:09 +00:00
parent 4b97062633
commit 978b312ba3

View File

@ -24,7 +24,7 @@ if(m==2){
return 0; return 0;
} }
} }
if(m>12){ if(m>12 || y<0){
printf("Nespravny datum\n"); printf("Nespravny datum\n");
return 0; return 0;
} }