{"id":226,"date":"2013-04-12T18:14:54","date_gmt":"2013-04-12T18:14:54","guid":{"rendered":"http:\/\/www.mahmuttalhakoz.com\/blog\/?p=226"},"modified":"2013-04-12T18:14:54","modified_gmt":"2013-04-12T18:14:54","slug":"c-ile-asal-sayi-kontrolu","status":"publish","type":"post","link":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/2013\/04\/12\/c-ile-asal-sayi-kontrolu\/","title":{"rendered":"c# ile Asal Sayi Kontrolu"},"content":{"rendered":"<p>Girilen sayinin asal sayi olup olmadiginin kontrolunu yapan kod blogu;<\/p>\n<p><code>            int sayi = Convert.ToInt32(Console.ReadLine());<br \/>\n            int sayac = 0;<br \/>\n            for (int i = 2; i < sayi; i++)\n            {\n                if (sayi % i == 0)\n                {\n                    Console.WriteLine(sayi+\"\/\" + i +\" = \"+ sayi % i); \/\/Sayinin carpanlari\n                    sayac++;\n                }\n            }\n\n            if (sayac == 0)\n            {\n                Console.WriteLine(\"Girdiginiz sayi asal\");\n            }\n            else\n            {\n                Console.WriteLine(\"Girilen sayi asal degil\");\n            }<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Girilen sayinin asal sayi olup olmadiginin kontrolunu yapan kod blogu;<span class=\"more-dots\"><a href=\"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/2013\/04\/12\/c-ile-asal-sayi-kontrolu\/\">[ &#8230; ]<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[102,103,101],"class_list":["post-226","post","type-post","status-publish","format-standard","hentry","category-csharp","tag-asal-sayi-kontrolu","tag-c-asal-sayi","tag-c-ile-asal-sayi-bulma"],"_links":{"self":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":2,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/226\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mahmuttalhakoz.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}