title: simple C problem
body: <p>I have had to start to learning C as part of a project that I am doing. I have started doing the 'euler' problems in it and am having trouble with the <a href="http://projecteuler.net/index.php?section=problems&amp;id=1" rel="nofollow noreferrer">first one</a>. I have to find the sum of all multiples of 3 or 5 below 1000. Could someone please help me. Thanks.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int start;
  int sum;
  
  int main() {
      while (start &lt; 1001) {
          if (start % 3 == 0) {
              sum = sum + start;
              start += 1;
          } else {
              start += 1;
          }
  
          if (start % 5 == 0) {
              sum = sum + start;
              start += 1;
          } else {
              start += 1;
          }
          printf("%d\n", sum);
      }
      return(0);
  }
  </code></pre>