From 428399edcd1f1a31292aa4037ca7a50edec50c23 Mon Sep 17 00:00:00 2001 From: czimbalmoskristof23 Date: Fri, 1 Mar 2024 19:12:03 +0100 Subject: [PATCH] =?UTF-8?q?k=C3=A9sz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- szokoev_gyak_0301/Program.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/szokoev_gyak_0301/Program.cs b/szokoev_gyak_0301/Program.cs index c7b3618..519cb3d 100644 --- a/szokoev_gyak_0301/Program.cs +++ b/szokoev_gyak_0301/Program.cs @@ -52,10 +52,15 @@ namespace szokoev_gyak_0301 } else if (ho == 4 || ho == 6 || ho == 9 || ho == 11) { napok = 30; - } else if (ho == 2) ; + } else if (ho == 2) { napok = szoko ? 29 : 28; // Mini elágazás + }else + { + Console.WriteLine("Ilyen hónap nincs!"); + } + Console.WriteLine("A" + ev + "éveben"); } } }