
{"id":15984,"date":"2014-10-16T15:25:10","date_gmt":"2014-10-16T15:25:10","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=15984"},"modified":"2014-10-16T15:25:10","modified_gmt":"2014-10-16T15:25:10","slug":"how-to-write-an-algorithm-to-find-the-sum-of-multiples-of-3-and-5-below-1000","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/10\/16\/how-to-write-an-algorithm-to-find-the-sum-of-multiples-of-3-and-5-below-1000\/","title":{"rendered":"How to write an algorithm to find among natural numbers the sum of multiples of 3 and 5 below 1000 ?"},"content":{"rendered":"<pre>\n\/* This program has been worked on from http:\/\/www.s-anand.net\/euler.html *\/\n\n#include &lt;stdio.h&gt;\n\nsofmul()\n{\nint n, i;\nn = 0;\n\nfor (i = 0 ; i &lt; 1000 ; i++) {\nif ( !(i % 5) || !(i % 3) )\nn = n + i;\n}\n\nprintf(\"Sum of the multiples of 3 and 5 below 1000 is %d \\n\", n);\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\/* This program has been worked on from http:\/\/www.s-anand.net\/euler.html *\/ #include &lt;stdio.h&gt; sofmul() { int n, i; n = 0; for (i = 0 ; i &lt; 1000 ; i++) { if ( !(i % 5) || !(i % 3) ) n = n + i; } printf(&#8220;Sum of the multiples of 3 and 5 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2014\/10\/16\/how-to-write-an-algorithm-to-find-the-sum-of-multiples-of-3-and-5-below-1000\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to write an algorithm to find among natural numbers the sum of multiples of 3 and 5 below 1000 ?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,141,21,78,91],"tags":[1515],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15984"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=15984"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15984\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=15984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=15984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=15984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}