From 5b0df47f78f2bd9a1870d811a4c09cb6e89eb531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20Rudolf?= Date: Wed, 14 Oct 2026 14:23:01 +0200 Subject: [PATCH] =?UTF-8?q?Find=20haszn=C3=A1lata?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ListaGyakorlas/ListaGyakorlas/Program.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ListaGyakorlas/ListaGyakorlas/Program.cs b/ListaGyakorlas/ListaGyakorlas/Program.cs index bea69a5..fa683ab 100644 --- a/ListaGyakorlas/ListaGyakorlas/Program.cs +++ b/ListaGyakorlas/ListaGyakorlas/Program.cs @@ -38,6 +38,17 @@ Tanulo tanulo = tanulok.Find(x=>x.Vezeteknev==inVezeteknev && x.Keresztnev==inKeresztnev); + if (tanulo!=null) + { + Console.WriteLine($"{tanulo.Vezeteknev} {tanulo.Keresztnev}"); + } else + { + Console.WriteLine("Nincs ilyen tanuló!"); + } + + + + }