{"id":622,"date":"2024-11-17T06:15:43","date_gmt":"2024-11-17T06:15:43","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=622"},"modified":"2024-11-17T06:15:43","modified_gmt":"2024-11-17T06:15:43","slug":"mwnci-gcd-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-gcd-function\/","title":{"rendered":"Mwnci gcd() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>gcd<strong>(<em>integer<\/em>,<em>integer<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>gcd()<\/i> function returns the greatest common divisor (GCD) of two integers. The GCD of two integers is the largest number that divides both of them without leaving a remainder.<\/p>\n<h2>Example<\/h2>\n<pre>\r\ninclude(\"math\")\r\nprintln(gcd(60,48))\r\nprintln(gcd(30,14))\r\n\r\n\r\n12\r\n2\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax gcd(integer,integer) Description The gcd() function returns the greatest common divisor (GCD) of two integers. The GCD of two integers is the largest number that divides both of them without leaving a remainder. Example include(&#8220;math&#8221;) println(gcd(60,48)) println(gcd(30,14)) 12 2<\/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-622","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/622","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=622"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/622\/revisions"}],"predecessor-version":[{"id":623,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/622\/revisions\/623"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}