{"id":38597,"date":"2016-10-27T21:37:41","date_gmt":"2016-10-28T02:37:41","guid":{"rendered":"http:\/\/turtlingturtlousturtle.tumblr.com\/post\/152406547993"},"modified":"2016-10-27T21:37:41","modified_gmt":"2016-10-28T02:37:41","slug":"factorials-again","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/factorials-again\/","title":{"rendered":"Factorials again!"},"content":{"rendered":"<p class=\"syndicated-attribution\"><em> --Originally published at <a href=\"http:\/\/turtlingturtlousturtle.tumblr.com\/post\/152406547993\"><a href=\"http:\/\/turtlingturtlousturtle.tumblr.com\/\">Just A Turtle Coding.<\/a><\/a><\/em><br \/><\/p>\n<p>So here\u2019s another use of the for loop, you can use it to calculate the factorial of a number.\u00a0<\/p><!-- more --><p>First you have to declare your variable which will be storing the count, and the one which will be storing the total. After that you just multiply and add inside the for loop.<\/p><figure class=\"tmblr-full\" data-orig-height=\"178\" data-orig-width=\"551\"><img src=\"http:\/\/66.media.tumblr.com\/21177eefeae20942f43fd29a95461fa2\/tumblr_inline_ofqklgoxy41ut4ewq_540.png\" data-orig-height=\"178\" data-orig-width=\"551\"\/><\/figure><p>Another example done by turtle :D<\/p>","protected":false},"excerpt":{"rendered":"<p>&#8211;Originally published at Just A Turtle Coding. So here\u2019s another use of the for loop, you can use it to calculate the factorial of a number.\u00a0First you have to declare your variable which will be storing the count, and the one which will be storing the total. After that you just multiply and add inside &hellip; <a href=\"https:\/\/kenscourses.com\/tc101fall2016\/syndicated\/factorials-again\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Factorials again!<\/span><\/a><\/p>\n","protected":false},"author":37,"featured_media":38598,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[323,322,24],"class_list":["post-38597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-godhelpme","tag-lastminutepost","tag-python"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/comments?post=38597"}],"version-history":[{"count":6,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38597\/revisions"}],"predecessor-version":[{"id":40760,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/posts\/38597\/revisions\/40760"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media\/38598"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/media?parent=38597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/categories?post=38597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2016\/wp-json\/wp\/v2\/tags?post=38597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}