diff --git a/du3/program.c b/du3/program.c index bacba05..e8a67a7 100644 --- a/du3/program.c +++ b/du3/program.c @@ -44,10 +44,16 @@ int main(){ year++; } + if(month < 10 && day < 10){ + printf("_%d.0%d.%d\n", day, month, year); + } else if(month < 10){ printf("%d.0%d.%d\n", day, month, year); } + else if(day < 10){ + printf("_%d.%d.%d\n", day, month, year); + } else{ printf("%d.%d.%d\n", day, month, year); } -} +} \ No newline at end of file