<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Panashe Tapera 💭</title>
    <description>The latest articles on DEV Community by Panashe Tapera 💭 (@panashetapy).</description>
    <link>https://dev.to/panashetapy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F344778%2F037d4836-d622-433c-9249-f1d25bff4f0a.jpg</url>
      <title>DEV Community: Panashe Tapera 💭</title>
      <link>https://dev.to/panashetapy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/panashetapy"/>
    <language>en</language>
    <item>
      <title>Multiples of 3 or 5</title>
      <dc:creator>Panashe Tapera 💭</dc:creator>
      <pubDate>Fri, 20 Aug 2021 17:09:33 +0000</pubDate>
      <link>https://dev.to/panashetapy/multiples-of-3-or-5-4akh</link>
      <guid>https://dev.to/panashetapy/multiples-of-3-or-5-4akh</guid>
      <description>&lt;p&gt;I'm a web developer and I've been going through the problems at(&lt;a href="https://projecteuler.net/problem=1"&gt;https://projecteuler.net/problem=1&lt;/a&gt;). &lt;/p&gt;

&lt;p&gt;I'm trying to get my coding skills better and think of better and faster algorithms.&lt;/p&gt;

&lt;p&gt;While my solutions may not be the best there is, please be lenient when trying to improve my solution or offering alternative ones. &lt;/p&gt;

&lt;p&gt;The problem is this:&lt;/p&gt;

&lt;p&gt;If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.&lt;/p&gt;

&lt;p&gt;Find the sum of all the multiples of 3 or 5 below 1000.&lt;/p&gt;

&lt;p&gt;Solution &lt;/p&gt;

&lt;p&gt;let number1 = 0;&lt;br&gt;
     let number2 = 3;&lt;br&gt;
     let number3 = 5;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; for (let index = 0; index &amp;lt; 1000; index++) {
   if (index%number2 === 0 || index%number3 === 0 ) {
     number1 = number1 + index;
   };

 };
 console.log(number1);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>algorithms</category>
    </item>
  </channel>
</rss>
