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

This commit is contained in:
Pavlo Tverdyi 2020-03-26 10:56:26 +00:00
parent 61609b9b1c
commit 371d149163

View File

@ -17,10 +17,10 @@ if(m%2!=0 && day>31){
} }
if(m%2==0 && day>30){ if(m%2==0 && day>30){
if(m==2 &&(y%400==0 ||(y%100!=0 && y%4==0))){ if(m==2 &&(y%400==0 ||(y%100!=0 && y%4==0))){
day-=28; day-=29;
} }
else if(m==2){ else if(m==2){
day-=30; day-=28;
} }
else{ else{
day-=30; day-=30;