{"id":381,"date":"2026-05-29T08:36:40","date_gmt":"2026-05-29T08:36:40","guid":{"rendered":"https:\/\/informatika.tbg.hu\/?page_id=381"},"modified":"2026-05-29T08:36:40","modified_gmt":"2026-05-29T08:36:40","slug":"hatultesztelos-ciklus","status":"publish","type":"page","link":"https:\/\/informatika.tbg.hu\/index.php\/hatultesztelos-ciklus\/","title":{"rendered":"H\u00e1tultesztel\u0151s ciklus"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A h\u00e1tultesztel\u0151s ciklust a neve j\u00f3l jellemzi, az utas\u00edtok ism\u00e9tl\u00e9s\u00e9nek eld\u00f6nt\u00e9se a ciklusmag v\u00e9grehajt\u00e1sa ut\u00e1n t\u00f6rt\u00e9nik.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Teh\u00e1t a ciklus legal\u00e1bb egyszer v\u00e9grehajt\u00f3dik.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mondatszer\u0171  le\u00edr\u00e1ssal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Ciklus\n    ciklusmag\nAm\u00edg (ism\u00e9tl\u00e9s felt\u00e9tele)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">N\u00e9zz\u00fck meg a m\u0171k\u00f6d\u00e9st konkr\u00e9t p\u00e9ld\u00e1n kereszt\u00fcl! <br>K\u00e9rj\u00fck be a felhaszn\u00e1l\u00f3t\u00f3l a kedvenc tant\u00e1rgy\u00e1t! Ezt addig ism\u00e9teltess\u00fck, am\u00edg azt nem \u00edrja, hogy informatika.<br>Figyelem!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Amennyiben a ciklus felt\u00e9tel\u00e9ben v\u00e1ltoz\u00f3t haszn\u00e1lunk, akkor azt <strong>a v\u00e1ltoz\u00f3t m\u00e9g a ciklus megkezd\u00e9se el\u0151tt <\/strong>defini\u00e1lni kell!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>string kedvenc = \"\"; \/\/ m\u00e9g a ciklus el\u0151tt defini\u00e1lom!\ndo\n{\n    Console.Write(\"Mi a kedvenc tant\u00e1rgyad? Szerintem az informatika! ;) \");\n    kedvenc=Console.ReadLine();\n} while (kedvenc!=\"informatika\");\nConsole.WriteLine(\"Annyira tudtam!\");<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"610\" height=\"87\" src=\"https:\/\/informatika.tbg.hu\/wp-content\/uploads\/2026\/05\/do_while.png\" alt=\"\" class=\"wp-image-382\" srcset=\"https:\/\/informatika.tbg.hu\/wp-content\/uploads\/2026\/05\/do_while.png 610w, https:\/\/informatika.tbg.hu\/wp-content\/uploads\/2026\/05\/do_while-300x43.png 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>A h\u00e1tultesztel\u0151s ciklust a neve j\u00f3l jellemzi, az utas\u00edtok ism\u00e9tl\u00e9s\u00e9nek eld\u00f6nt\u00e9se a ciklusmag v\u00e9grehajt\u00e1sa ut\u00e1n t\u00f6rt\u00e9nik. Teh\u00e1t a ciklus legal\u00e1bb egyszer v\u00e9grehajt\u00f3dik. Mondatszer\u0171 le\u00edr\u00e1ssal: N\u00e9zz\u00fck meg a m\u0171k\u00f6d\u00e9st konkr\u00e9t p\u00e9ld\u00e1n kereszt\u00fcl! K\u00e9rj\u00fck be a felhaszn\u00e1l\u00f3t\u00f3l a kedvenc tant\u00e1rgy\u00e1t! Ezt addig ism\u00e9teltess\u00fck, am\u00edg azt nem \u00edrja, hogy informatika.Figyelem! Amennyiben a ciklus felt\u00e9tel\u00e9ben v\u00e1ltoz\u00f3t haszn\u00e1lunk, akkor azt [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-381","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/informatika.tbg.hu\/index.php\/wp-json\/wp\/v2\/pages\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/informatika.tbg.hu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/informatika.tbg.hu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/informatika.tbg.hu\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/informatika.tbg.hu\/index.php\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":1,"href":"https:\/\/informatika.tbg.hu\/index.php\/wp-json\/wp\/v2\/pages\/381\/revisions"}],"predecessor-version":[{"id":383,"href":"https:\/\/informatika.tbg.hu\/index.php\/wp-json\/wp\/v2\/pages\/381\/revisions\/383"}],"wp:attachment":[{"href":"https:\/\/informatika.tbg.hu\/index.php\/wp-json\/wp\/v2\/media?parent=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}