title: QBasic - How to find this value?
body: <p>If we have <code>M</code> as follows:</p>
  
  <p><code>M = 1+2+3+5+6+7+9+10+11+13+...+n</code></p>
  
  <p>What would be the <code>QBasic</code> program to find <code>M</code>.</p>
  
  <p>I have done the following so far, but is not returning me the expected value</p>
  
  <pre><code>INPUT "ENTER A VALUE FOR N"
  SUM = 0
  FOR I = 1 TO N
  IF I MOD 4 = 0
  SUM = SUM + I
  NECT I
  </code></pre>
  
  <p>How should I go about this?</p>
  
  <p>Thanks.</p>