From 701a9fb030a0c724d3b6aea5368aa81854d44ae9 Mon Sep 17 00:00:00 2001 From: Artem Horbunov Date: Thu, 26 Mar 2020 23:01:20 +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, 4 insertions(+), 4 deletions(-) diff --git a/du3/program.c b/du3/program.c index e4d61e9..c274ab5 100644 --- a/du3/program.c +++ b/du3/program.c @@ -6,20 +6,20 @@ int main(){ int year; scanf("%d.%d.%d", &day, &month, &year); if(day < 1 || day > 31 || month < 1 || month > 12){ - puts("Neplatny datum"); + puts("Nespravny datum"); return 0; } if(month == 2 && day > 29){ - puts("Neplatny datum"); + puts("Nespravny datum"); return 0; } if(year % 4 != 0 && month == 2 && day > 28){ - puts("Neplatny datum"); + puts("Nespravny datum"); return 0; } if(month == 4 || month == 6 || month == 9 || month == 11){ if(day > 30){ - puts("Neplatny datum"); + puts("Nespravny datum"); return 0; } }