From 9b65441b5e281c3ad79c9652d0e41f11fae9a9f9 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 26 Mar 2020 20:18:00 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/du3/program.c b/du3/program.c index 1352511..8aebbdc 100644 --- a/du3/program.c +++ b/du3/program.c @@ -17,9 +17,9 @@ int main() t.tm_mday += 7; if(t.tm_mon + 1 < 10){ - printf(" %d.%d.%d", t.tm_mday, t.tm_mon + 1, t.tm_year + 1900); - } else{ printf(" %d.0%d.%d", t.tm_mday, t.tm_mon + 1, t.tm_year + 1900); + } else{ + printf(" %d.%d.%d", t.tm_mday, t.tm_mon + 1, t.tm_year + 1900); }