From f4e2e5ec5c821c48c628a1bbc87d0c4e3b3498a3 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Thu, 26 Mar 2020 22:24:53 +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, 2 insertions(+), 6 deletions(-) diff --git a/du3/program.c b/du3/program.c index dd1040c..9015852 100644 --- a/du3/program.c +++ b/du3/program.c @@ -6,8 +6,7 @@ int ValidateTime(int dd , int mm , int yy) { - if(yy>=1900 && yy<=9999) - { + //check month if(mm>=1 && mm<=12) { @@ -28,10 +27,7 @@ int ValidateTime(int dd , int mm , int yy) return 0; } } - else - { - return 0; - } + } int main()