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

This commit is contained in:
Pavlo Tverdyi 2020-03-26 11:06:57 +00:00
parent c99b507312
commit 16976674a2

View File

@ -32,7 +32,13 @@ if(m>12){
day--; day--;
y++; y++;
} }
if(m>9){ if(m>9 && day>9){
printf("%d.%d.%d\n",day,m,y);
}
else if(m<10 && day>9){
printf("%d.0%d.%d\n",day,m,y);
}
else if(m>9 && day<10){
printf(" %d.%d.%d\n",day,m,y); printf(" %d.%d.%d\n",day,m,y);
} }
else{ else{