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

This commit is contained in:
Pavlo Tverdyi 2020-03-26 23:12:44 +00:00
parent b5e0e1b8ba
commit 01ff9b3511

View File

@ -16,11 +16,11 @@ if(y%400==0 ||(y%100!=0 && y%4==0)){
} }
if(m==2){ if(m==2){
if(z==1 &&day>29){ if(z==1 &&day>29){
printf("Nespravny datum"); printf("Nespravny datum\n");
return 0; return 0;
} }
if(z==0 &&day>28){ if(z==0 &&day>28){
printf("Nespravny datum"); printf("Nespravny datum\n");
return 0; return 0;
} }
} }