From d7ed1c2d95ed432c95834470e9ed6334f8e053fc Mon Sep 17 00:00:00 2001 From: Artem Horbunov Date: Thu, 26 Mar 2020 22:37:39 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu3/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du3/program.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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