{"id":600,"date":"2024-11-17T05:44:55","date_gmt":"2024-11-17T05:44:55","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=600"},"modified":"2024-11-17T05:44:55","modified_gmt":"2024-11-17T05:44:55","slug":"mwnci-factorial-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-factorial-function\/","title":{"rendered":"Mwnci factorial() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>factorial<strong>(<em>integer<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>factorial()<\/i> function returns the product of all the numbers between 1 and n, where n must always be positive values. Please note that 0! is a special case, and the result of 0! is 1.<\/p>\n<h2>Example<\/h2>\n<pre>\r\ninclude(\"math\")\r\nprintln(factorial(5))\r\nprintln(factorial(0))\r\n\r\n\r\n120\r\n1\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax factorial(integer) Description The factorial() function returns the product of all the numbers between 1 and n, where n must always be positive values. Please note that 0! is a special case, and the result of 0! is 1. Example include(&#8220;math&#8221;) println(factorial(5)) println(factorial(0)) 120 1<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-600","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=600"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/600\/revisions"}],"predecessor-version":[{"id":601,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/600\/revisions\/601"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}