title: calculate sum of multiples without merging common values
body: <p>The following code results by combing common values into one:</p>
  
  <pre><code>//3,6,9,12,15------
  //5,10,15----------
  
  //result: sum of (3,5,6,9,10,12,15) = 60
  </code></pre>
  
  <hr>
  
  <pre><code>int = 0;
  for(var i=1;i&lt;16;i++){
      if(i%3==0 || i%5==0){
  
          int +=i;
      }
  }
  alert(int);//60
  </code></pre>
  
  <hr>
  
  <p>But I wanted to get the output without combining:</p>
  
  <pre><code>    //3,6,9,12,15------|should ressult:
      //5,10,15----------|75
  
  //result without combining: sum of (3,6,9,12,15,5,10,15) == 75
  </code></pre>
  
  <p>If you say I should do &amp;&amp; instead of || then it will just result common sum i.e. 15 here in example.</p>
  
  <p>So, how can I do?</p>