Изменить '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,9 +32,15 @@ if(m>12){
day--; day--;
y++; y++;
} }
if(m>9){ if(m>9 && day>9){
printf("%d.%d.%d\n",day,m,y); 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);
}
else{ else{
printf(" %d.0%d.%d\n",day,m,y); printf(" %d.0%d.%d\n",day,m,y);
} }