{"id":126,"date":"2023-12-02T03:03:08","date_gmt":"2023-12-02T00:03:08","guid":{"rendered":"http:\/\/www.cuneytbayrak.com\/?p=126"},"modified":"2025-02-21T00:44:34","modified_gmt":"2025-02-20T21:44:34","slug":"faktoriyel-algoritmasi-iteratif-yontem","status":"publish","type":"post","link":"http:\/\/www.cuneytbayrak.com\/?p=126","title":{"rendered":"Fakt\u00f6riyel Algoritmas\u0131 (\u0130teratif Y\u00f6ntem)"},"content":{"rendered":"<p>Fakt\u00f6riyel hesab\u0131n\u0131n ne demek oldu\u011funu, san\u0131r\u0131m bu siteye girip bir\u015feyler ara\u015ft\u0131ran herkes biliyordur.<\/p>\n<p><a href=\"http:\/\/www.flowgorithm.org\/download\/index.html\" target=\"_blank\" rel=\"noopener\">Flowgorithm<\/a>\u00a0uygulamas\u0131 ile yapt\u0131\u011f\u0131m bir flowchart\u0131 a\u015fa\u011f\u0131da incelemenize sundum.<\/p>\n<p>Ayr\u0131ca program\u0131n tamam\u0131n\u0131 da\u00a0<a href=\"http:\/\/cuneytbayrak.com\/wp-content\/uploads\/2025\/02\/faktoryeliterasyon.zip\" target=\"_blank\" rel=\"noopener\">buradan\u00a0<\/a>indirebilirsiniz.<\/p>\n<p>A\u015fa\u011f\u0131da ki python kodlar\u0131na da bakal\u0131m.<\/p>\n<p><strong>Kod Blo\u011fum:\u00a0<\/strong><\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\"># Bu program fakt\u00f6ryel hesab\u0131n\u0131 iteratif y\u00f6ntemle yapar\r\n\r\n# Kullan\u0131c\u0131dan giri\u015f al\r\nprint(\"L\u00fctfen fakt\u00f6ryelini hesaplamak istedi\u011finiz say\u0131y\u0131 giriniz:\")\r\nn = int(input())\r\n\r\n# Negatif say\u0131lar i\u00e7in kontrol\r\nif n &lt; 0:\r\n    print(\"Negatif say\u0131lar\u0131n fakt\u00f6ryeli hesaplanamaz!\")\r\nelse:\r\n    sonuc = 1\r\n    for i in range(1, n + 1):\r\n        sonuc *= i\r\n\r\n    # Sonucu yazd\u0131r\r\n    print(f\"{n}! = {sonuc}\")\r\n<\/pre>\n<\/div>\n<p>Kolay gele&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fakt\u00f6riyel hesab\u0131n\u0131n ne demek oldu\u011funu, san\u0131r\u0131m bu siteye girip bir\u015feyler ara\u015ft\u0131ran herkes biliyordur. Flowgorithm\u00a0uygulamas\u0131 ile yapt\u0131\u011f\u0131m bir flowchart\u0131 a\u015fa\u011f\u0131da incelemenize sundum. Ayr\u0131ca program\u0131n tamam\u0131n\u0131 da\u00a0buradan\u00a0indirebilirsiniz. A\u015fa\u011f\u0131da ki python kodlar\u0131na da&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.cuneytbayrak.com\/?p=126\">Devam\u0131n\u0131 Oku<span class=\"screen-reader-text\">Fakt\u00f6riyel Algoritmas\u0131 (\u0130teratif Y\u00f6ntem)<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":0,"footnotes":""},"categories":[2],"tags":[35],"class_list":["post-126","post","type-post","status-publish","format-standard","hentry","category-algoritmalar","tag-factorialiterative","excerpt"],"_links":{"self":[{"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=126"}],"version-history":[{"count":2,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":128,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions\/128"}],"wp:attachment":[{"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}