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

This commit is contained in:
Pavlo Tverdyi 2020-03-26 23:17:50 +00:00
parent 978b312ba3
commit fc1ca7eead

View File

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