{"id":115,"date":"2009-03-20T15:44:00","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.yazilimmutfagi.com\/?p=115"},"modified":"2009-03-20T15:44:00","modified_gmt":"1970-01-01T00:00:00","slug":"yazilim-mutfagi-dersleri-csharp-ders-3-kosul-ifadeleri-if-else-switch-case-ve-donguler-for","status":"publish","type":"post","link":"https:\/\/www.yazilimmutfagi.com\/index.php\/2009\/03\/20\/yazilim-mutfagi-dersleri-csharp-ders-3-kosul-ifadeleri-if-else-switch-case-ve-donguler-for\/","title":{"rendered":"Yazilim Mutfagi Dersleri (C#) Ders 3 &#8211; Kosul Ifadeleri (if else, switch case) ve D\u00f6ng\u00fcler(for, do while, while)"},"content":{"rendered":"<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">&Ouml;nceki Dersler<\/span><\/strong><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">&nbsp;<\/span><\/p>\n            <\/td>\n        <\/tr>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\"><a href=\"..\/MakaleOku.aspx?Makale=YazIlIm+MutfagI+Dersleri+(CSharp)+Ders+2+-+Degisken+Tipleri,+Degisken+TanImlama+ve+Operatorler&amp;MakaleKey=13e2a215-a5a0-4716-a3bf-91a7393b551e\"><span style=\"color: rgb(0, 0, 255);\">Ders 2 : Degisken Tipleri, Degisken Tanimlama ve Operat&ouml;rler.<\/span><\/a><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\"><a href=\"..\/MakaleOku.aspx?Makale=YazIlIm+MutfagI+Dersleri+(CSharp)++Ders+1+-+Giris&amp;MakaleKey=a771ce70-fb92-4c93-96f0-b7155c4dc36c\"><span style=\"color: rgb(0, 0, 255);\">Ders 1 : C#&#8217;a Giris.<\/span><\/a><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">&nbsp;<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Bu dersimizde C# programlama dilinde kosul ifadeleri, akis kontrol ve d&ouml;ng&uuml; yapisi &uuml;zerinde duracagiz. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Kosul Ifadeleri ve Akis Kontrol&uuml; <\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Kosul ifadeleri ve akis kontrolleri programlama dillerinde her zaman en &ouml;nemli yeri tutmaktadir. Yazdigimiz uygulamanin hangi kosulda nasil davranacagini belirterek bir akis kontrol&uuml; olusturabilmek i&ccedil;in kosul ifadelerini iyi bilmemiz gerekir. T&uuml;m programlama dillerinde oldugu gibi en temel kosul ifadesi if else bloklaridir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">if&hellip;else Blogu<\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">if&hellip;else yapisi uygulamalarimizda sik sik kullandigimiz ve kullanmak zorunda oldugumuz bir yapidir. Programlamayi if&hellip;else bloklari olmadan d&uuml;s&uuml;nmek imkansizdir. Kosul ifadeleri uygulamalarimizda bir karar verme mekanizmasi gibi davranir. <\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"546\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 409.4pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">if<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">(<span style=\"color: blue;\">bool bir ifade<\/span>)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp; <\/span>Dogru ise<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">else<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp; <\/span>Yanlis ise<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">if&hellip;else ifadesinin yapisi yukaridaki gibidir. Bir durum if i&ccedil;erisinde karsilastirilir eger kosul dogru ise if altina yazdigimiz blok kod veya tek bir satir kod &ccedil;alisir, kosul yanlis ise else bloguna tanimladigimiz kod kismi &ccedil;alisir. Else kismini yazmak zorunda degiliz. Eger yazmaksak ve kosulda yanlis ise if blogu i&ccedil;ine giremeyecegi i&ccedil;in herhangi bir islem yapilmadan bir sonraki kisma ge&ccedil;erek kodumuz akmaya devam eder.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">if<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (ad == <span style=\"color: rgb(163, 21, 21);\">&quot;Sabri&quot;<\/span>)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Merhaba Sabri. Ne zamandir g&ouml;z&uuml;km&uuml;yodun&#8230;&quot;<\/span>);<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Yukarida g&ouml;r&uuml;nd&uuml;g&uuml; gibi else yazmadan da karsilastirma yapabiliriz. Eger ad Sabri ise if i&ccedil;indeki kod &ccedil;alisir degilse bir sonraki asamaya ge&ccedil;erek kodumuz &ccedil;alismaya devam eder. Yukaridaki kodun else ile kullanimi ise asagidaki gibidir.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">if<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (ad == <span style=\"color: rgb(163, 21, 21);\">&quot;Sabri&quot;<\/span>)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Merhaba Sabri. Ne zamandir g&ouml;z&uuml;km&uuml;yodun&#8230;&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">else<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Sende Kimsin&#8230;&quot;<\/span>);<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Eger if ve else bloklari i&ccedil;inde birden fazla satir kod yazmak istiyorsaniz { }ifadelerini kullanmaniz gerekir.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">if<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (ad == <span style=\"color: rgb(163, 21, 21);\">&quot;Sabri&quot;<\/span>)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>gelenKisi = ad;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Merhaba Sabri. Ne zamandir g&ouml;z&uuml;km&uuml;yodun&#8230;&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">else<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>gelenKisi = <span style=\"color: rgb(163, 21, 21);\">&quot;Izinsiz&quot;<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Her zaman {} parantezlerini kullanmanizi tavsiye ederim. Kodunuzun okunurlulugunu arttirdigi gibi hata yapmanizi da engeller.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">if ifadesini isterseniz else bloklarinda da kullanabilirsiniz. B&ouml;ylece karsilastirma kriterinizi genisletmis olursunuz.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">if<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (ad == <span style=\"color: rgb(163, 21, 21);\">&quot;Sabri&quot;<\/span>)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>gelenKisi = ad;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Merhaba Sabri. Ne zamandir g&ouml;z&uuml;km&uuml;yodun&#8230;&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">else<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> <span style=\"color: blue;\">if<\/span> (ad == <span style=\"color: rgb(163, 21, 21);\">&quot;Metin&quot;<\/span>)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>gelenKisi = ad;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Vaaaay Sen Ha&#8230;&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">else<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>gelenKisi = <span style=\"color: rgb(163, 21, 21);\">&quot;Izinsiz&quot;<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Sende Kimsin&#8230;&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">if&hellip; else bloklarini i&ccedil; i&ccedil;e de kullanabilirsiniz.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">if<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (yas &gt; 25)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">if<\/span> (yas == 26)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Sinirda Geziyosun&#8230;&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">else<\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Yas Kemale Ermis Gibi&#8230;&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>}<span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">else<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> <\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Daha Gen&ccedil;sin Ya&#8230;&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">if i&ccedil;erisine C\/C++ dan farkli olarak sadece kosul ifadesi olarak boolean ifadeler yazilabilir. Asagidaki gibi bir ifade yanlistir. Eger j esit midir 4 demek istiyorsaniz iki esittir kullanarak yazmaniz gerekir. Bir &ouml;nceki dersimizdeki operat&ouml;rlere bakmanizi tavsiye ederim.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">if<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (j = 4)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: green;\">\/\/ Hata Verir. j=4 ifadesi j degiskenine 4 sayisini atamak demektir.<\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: green; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>\/\/ yani boolean bir ifade degildir. j==4 ise j 4&rsquo; esitmi demektir.<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/span><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">switch&hellip;case Ifadesi<\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Karsilastirma yapacaginiz ifadenin alabilecegi degerler fazla ise &ccedil;ok fazla if else if ifadesi yazmak yerine karsilastirmamizi swtich&hellip;case yapisini kullanarak olusturmamiz hem kodumuzun okunurlulugu arttirir hem de daha hizli kod yazmamizi saglar. <\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">switch<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (degisken)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">case<\/span> sabit deger : kod blogu;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">break<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">case<\/span> sabit deger : kod blogu;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">break<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">default<\/span>:<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>kod blogu;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">swich&hellip;case kullanimi ard arda yazilacak if..else bloklarini kullanmaktan daha kolaydir. Basit bir &ouml;rnekle daha iyi anlayabiliriz.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Courier New&quot;;\">Console<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;L&uuml;tfen Yasinizi Giriniz&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">int<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> yas;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">yas = <span style=\"color: rgb(43, 145, 175);\">Convert<\/span>.ToInt32(<span style=\"color: rgb(43, 145, 175);\">Console<\/span>.ReadLine());<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">switch<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (yas)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">case<\/span> 20: <span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Gen&ccedil; Adam Merhaba&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">break<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">case<\/span> 25: <span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Merhaba Deli Kanli&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">break<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">case<\/span> 35: <span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Merhaba Dayi&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">break<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">default<\/span>:<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Merhaba&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">break<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Yukaridaki kodu inceleyecek olursak;<span style=\"\">&nbsp; <\/span>switch() i&ccedil;erisine karsilastirma yapacagimiz degiskeni koyuyoruz. Kontrol edecegimiz t&uuml;m degerleri i&ccedil;in farkli bir case blogu yaziyoruz. Her case blogunun break le bittigine dikkat edin. C# break kullanmadan swtch case yazmaniza izin vermez. break; &ccedil;alistigi zaman bulundugu kod blogundan &ccedil;ikis yapilmasini saglar. Case bloklarindan hi&ccedil; birisi &ccedil;alismazsa &ouml;rnegin &ouml;rnekte yas 20,25 veya 35 den hi&ccedil; biri degilse default satirina yazdigimiz kod &ccedil;alisir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">C# da D&ouml;ng&uuml;lerin Kullanimi<\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Bir kod blogunun belirli sartlara bagli veya bagimsiz olarak ardisik olarak &ccedil;alistirilmasi i&ccedil;in d&ouml;ng&uuml;ler kullanilir. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">for<span style=\"\">&nbsp; <\/span>D&ouml;ng&uuml;s&uuml;<\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">En temel d&ouml;ng&uuml; yapisi for d&ouml;ng&uuml;s&uuml;d&uuml;r. C# da for d&ouml;ng&uuml;s&uuml; kullanimi C\/C++ ve Javada ki gibidir. Basit bir for d&ouml;ng&uuml;s&uuml;n&uuml;n yapisi asagidaki gibidir.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (baslangi&ccedil;; kosul; artim \/ azalim)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: green;\">\/\/kod blogu<\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\"><br \/>\n<br \/>\nSifirdan dokuza kadar olan sayilari konsol ekranina yazan basit bir for d&ouml;ng&uuml;s&uuml; yapalim.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (<span style=\"color: blue;\">int<\/span> i = 0; i &lt; 10; i++)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;D&ouml;ng&uuml;de i degeri suan : {0}&quot;<\/span>,i);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Yukaridaki for d&ouml;ng&uuml;s&uuml; sonucu ekran &ccedil;iktisi asagidaki gibi olur.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\" style=\"background: black none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: 1pt solid black; padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 0<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 1<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 2<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 3<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 4<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 5<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 6<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 7<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 8<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 9<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small; font-family: Calibri;\">Devam etmek i&ccedil;in bir tusa basin . . .<\/span><\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">&Ouml;rnekte i degeri ilk olarak 0&rsquo;dan baslar ve i++ ifadesine g&ouml;re her d&ouml;ng&uuml;de bir deger artar. i&lt;10 ifadesi i degerinin 10&rsquo;dan k&uuml;&ccedil;&uuml;k olup olmadigini kontrol eder. Eger 10&rsquo;dan k&uuml;&ccedil;&uuml;k ise d&ouml;ng&uuml; i&ccedil;ine yazilan<\/span><span style=\"font-size: small; font-family: Calibri;\"> <\/span><span style=\"font-size: 10pt; color: rgb(43, 145, 175); line-height: 115%; font-family: &quot;Courier New&quot;;\">Console<\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Courier New&quot;;\">.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;D&ouml;ng&uuml;de i degeri suan : {0}&quot;<\/span>,i); <\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">kismi &ccedil;alisir. i degeri 10 oldugu zaman i&lt;10 kosulu false deger &uuml;reterek d&ouml;ng&uuml;m&uuml;z&uuml;n sonlanmasina sebep olur.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">for D&ouml;ng&uuml;s&uuml; Hakkinda &Ouml;nemli Noktalar<\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">for d&ouml;ng&uuml;s&uuml;nde baslangi&ccedil;, kosul ve artim\/azalim olarak isimlendirdigimiz kisimlarin &uuml;&ccedil;&uuml; de opsiyoneldir.<span style=\"\">&nbsp; <\/span>Istersek kullanmaya biliriz. Baslangi&ccedil; degerini for d&ouml;ng&uuml;s&uuml;nden &ouml;nce setleyerek d&ouml;ng&uuml; i&ccedil;inde belirli kontrolleri yapabilir, istedigimiz zamanda break komutu ile d&ouml;ng&uuml;y&uuml; sonlandirabiliriz. Bu kontrolleri d&ouml;ng&uuml; i&ccedil;inde de yapmazsak sonsuz bir d&ouml;ng&uuml;m&uuml;z olur. For d&ouml;ng&uuml;s&uuml; asagidaki gibi kullanilabilir.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (; ; ) <\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (; i &lt; 10; i++) <\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (<span style=\"color: blue;\">int<\/span> i = 3; ; i&#8211;) <\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (; i &lt; 5; )<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">for d&ouml;ng&uuml;s&uuml;n&uuml; s&uuml;sl&uuml; parantez {} ler ile kullanmazsak for ifadesinden sonraki ilk satir d&ouml;ng&uuml; i&ccedil;inde &ccedil;alistirilir. Eger d&ouml;ng&uuml; i&ccedil;inde birden fazla satir kod &ccedil;alistirmak istiyorsan { } parantezlerini kullanmak zorundayiz. D&ouml;ng&uuml; i&ccedil;inde tek bir satir kod bile &ccedil;alistiracak olsaniz s&uuml;sl&uuml; parantezleri kullanmanizi tavsiye ederim.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">D&ouml;ng&uuml;m&uuml;z&uuml; belli bir kosul altinda sonlandirmak istiyorsak <strong style=\"\">break<\/strong> komutunu kullaniriz.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (<span style=\"color: blue;\">int<\/span> i = 0; i &lt; 10; i++)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">if<\/span> (i &gt; 5)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">break<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;D&ouml;ng&uuml;de i degeri suan : {0}&quot;<\/span>, i);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Yukaridaki kodda i degeri 5 den b&uuml;y&uuml;k oldugunda break komutu &ccedil;alisarak d&ouml;ng&uuml;n&uuml;n sonlanmasina sebep olur. Ekran &ccedil;iktisi asagidaki gibi olur.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: black none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 0<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 1<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 2<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 3<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 4<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 5<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small; font-family: Calibri;\">Devam etmek i&ccedil;in bir tusa basin . . .<\/span><\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Belli bir kosul altinda d&ouml;ng&uuml; i&ccedil;ine yazdigimiz kodlarin &ccedil;alismayarak bir sonraki d&ouml;ng&uuml; adimina ge&ccedil;mek istiyorsak continue komutunu kullaniriz.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">for<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (<span style=\"color: blue;\">int<\/span> i = 0; i &lt; 10; i++)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">if<\/span> (i == 5)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">continue<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;D&ouml;ng&uuml;de i degeri suan : {0}&quot;<\/span>, i);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">i degeri 5 oldugu zaman continue komutu &ccedil;alisarak d&ouml;ng&uuml;y&uuml; bir sonraki adima tasir, bunun sonucu asagidaki ekran &ccedil;iktisi olusur.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: black none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 0<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 1<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 2<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 3<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 4<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 6<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 7<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 8<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">D&ouml;ng&uuml;de i degeri suan : 9<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small; font-family: Calibri;\">Devam etmek i&ccedil;in bir tusa basin . . .<\/span><\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<strong style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">do&hellip; while D&ouml;ng&uuml;s&uuml;<\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">do&hellip;while d&ouml;ng&uuml;s&uuml;n&uuml;n temel yapisi asagidaki gibidir.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">do<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: green;\">\/\/ &ccedil;alisacak kod<\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">while<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">(kosul);<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">D&ouml;ng&uuml; i&ccedil;ine yazilan kod ilk olarak &ccedil;alisir daha sonra while kismindaki kosul kontrol edilir, burada bulunan kosul true deger d&ouml;nd&uuml;rd&uuml;g&uuml; s&uuml;rece d&ouml;ng&uuml; tekrar tekrar &ccedil;alisir.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">int<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> i = 0;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">do<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: {0}&quot;<\/span>, i);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>i++;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">while<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (i&lt;10);<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\"><br \/>\nEkran g&ouml;r&uuml;nt&uuml;s&uuml;;<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: black none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 0<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 1<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 2<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 3<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 4<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 5<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 6<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 7<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 8<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small;\"><span style=\"font-family: Calibri;\">do while d&ouml;ng&uuml;s&uuml; i&ccedil;inde i degeri suan: 9<\/span><\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"color: white;\"><span style=\"font-size: small; font-family: Calibri;\">Devam etmek i&ccedil;in bir tusa basin . . .<\/span><\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 0pt 36pt;\" class=\"MsoListParagraphCxSpFirst\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 0pt 36pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpMiddle\"><span style=\"font-size: 10pt; line-height: 115%; font-family: Symbol;\"><span style=\"\">&middot;<span style=\"font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">do&hellip;while d&ouml;ng&uuml;s&uuml; i&ccedil;ine yazilan kod blogu her zaman ilk seferde &ccedil;alisir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt 36pt; text-indent: -18pt;\" class=\"MsoListParagraphCxSpLast\"><span style=\"font-size: 10pt; line-height: 115%; font-family: Symbol;\"><span style=\"\">&middot;<span style=\"font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">while ifadesinden sonra noktali virg&uuml;l kullanilir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><a href='www.yazilimmutfagi.com'>.<\/a><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">while D&ouml;ng&uuml;s&uuml;<\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Hemen hemen do&hellip;while d&ouml;ng&uuml;s&uuml; ile ayni &ouml;zellikleri tasir. Sadece ilk &ccedil;alisma mantiklari farklidir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">do&hellip;while d&ouml;ng&uuml;s&uuml; ilk olarak kod bloguna girer daha sonra kosul kontrol edilir, b&ouml;ylece kosul dogru olsada olmasada kod blogu bir kez &ccedil;alisir. <\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">while d&ouml;ng&uuml;s&uuml; ise kod bloguna girmeden &ouml;nce kosul durumunu kontrol eder, eger kosul dogru degilse kod blogu asla &ccedil;alismaz. Bu k&uuml;&ccedil;&uuml;k ama &ccedil;ok &ouml;nemli bir farktir.<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">while d&ouml;ng&uuml;s&uuml;n&uuml;n yapisi<\/span><\/strong><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">while<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (kosul)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: green;\">\/\/kod blogu<\/span><\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><strong style=\"\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/strong><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Kosul ifadesi dogru ise while i&ccedil;inde yazilan kod blogu &ccedil;alisir. kosul yanlis oldugu anda d&ouml;ng&uuml; sona erer. <\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">int<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> sayac = 0;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">while<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (sayac&lt;10)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Sayac Degeri: {0}&quot;<\/span>,sayac);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>sayac++;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">D&ouml;ng&uuml;leri kullanarak basit bir &ouml;rnek yapalim. &Ouml;rnegin Ekrandan kullanici adini alalim. Kullanici adi bizim istedigimiz deger olana kadar kullanici adini istemeye devam edelim. Bizim istedigimiz kullanici adi yazildigi zaman bir mesaj vererek d&ouml;ng&uuml;den &ccedil;ikalim. Bu &ouml;rnegimizi do&hellip;while veya while d&ouml;ng&uuml;s&uuml; ile yapabiliriz. Biz &ouml;rnegimize while d&ouml;ng&uuml;s&uuml; ile nasil yapilacagini anlatacagiz.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">string<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> kullaniciAdi = <span style=\"color: rgb(163, 21, 21);\">&quot;&quot;<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">while<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (kullaniciAdi != <span style=\"color: rgb(163, 21, 21);\">&quot;Sabri&quot;<\/span>)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;L&uuml;tfen Kullanici Adini Yaziniz.&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>kullaniciAdi = <span style=\"color: rgb(43, 145, 175);\">Console<\/span>.ReadLine();<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: rgb(43, 145, 175); font-family: &quot;Courier New&quot;;\">Console<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Hosgeldin Sabri.&quot;<\/span>);<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><br \/>\n<span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">while i&ccedil;indeki kosul sarti kullaniciAdi Sabri olmadigi s&uuml;rece dogru degeri d&ouml;nd&uuml;r&uuml;r. Bu y&uuml;zdende Sabri ismi girilene kadar d&ouml;ng&uuml; sonlanmaz. Ayni islemi asagidaki gibide yapabiliriz.<\/span><\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"background: rgb(238, 236, 225) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; border-collapse: collapse;\" class=\"MsoTableGrid\">\n    <tbody>\n        <tr style=\"\">\n            <td valign=\"top\" width=\"614\" style=\"border: medium none rgb(240, 240, 240); padding: 0cm 5.4pt; width: 460.6pt; background-color: transparent;\">\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">string<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> kullaniciAdi = <span style=\"color: rgb(163, 21, 21);\">&quot;&quot;<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; color: blue; font-family: &quot;Courier New&quot;;\">while<\/span><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"> (<span style=\"color: blue;\">true<\/span>)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;L&uuml;tfen Kullanici Adini Yaziniz.&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>kullaniciAdi = <span style=\"color: rgb(43, 145, 175);\">Console<\/span>.ReadLine();<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">if<\/span> (kullaniciAdi == <span style=\"color: rgb(163, 21, 21);\">&quot;Sabri&quot;<\/span>)<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>{<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: rgb(43, 145, 175);\">Console<\/span>.WriteLine(<span style=\"color: rgb(163, 21, 21);\">&quot;Hosgeldin Sabri.&quot;<\/span>);<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><span style=\"color: blue;\">break<\/span>;<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\"><span style=\"\">&nbsp;&nbsp;&nbsp; <\/span>}<\/span><\/p>\n            <p style=\"margin: 0cm 0cm 0pt; line-height: normal;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; font-family: &quot;Courier New&quot;;\">}<\/span><\/p>\n            <\/td>\n        <\/tr>\n    <\/tbody>\n<\/table>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: small; font-family: Calibri;\">&nbsp;<\/span><\/p>\n<p style=\"margin: 0cm 0cm 10pt;\" class=\"MsoNormal\"><span style=\"font-size: 10pt; line-height: 115%; font-family: &quot;Verdana&quot;,&quot;sans-serif&quot;;\">Yukaridaki kod &ouml;rneginde while i&ccedil;ine direk olarak true degeri yazdik, b&ouml;ylece d&ouml;ng&uuml;n&uuml;n asla sonlanmamasini sagladik fakat d&ouml;ng&uuml; i&ccedil;inde if kosulu ile kullaniciAdi kontrol ediliyor ve eger Sabri olarak girilmisse break komutu ile d&ouml;ng&uuml;y&uuml; sonlandiriyoruz.<\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Bu dersimizde C# programlama dilinde kosul ifadeleri, akis kontrol ve d&#246;ng&#252; yapisi &#252;zerinde duracagiz. <\/p>\n","protected":false},"author":517,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[436],"tags":[4462,4312,5431,6362,6032,6102,4717,6271,4597,4186,4933,5765,4803,6413],"_links":{"self":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/115"}],"collection":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/users\/517"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/comments?post=115"}],"version-history":[{"count":0,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/posts\/115\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/media?parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/categories?post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yazilimmutfagi.com\/index.php\/wp-json\/wp\/v2\/tags?post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}