C code help, loops and sum of multiples
<p>I am stuck and I could use a fresh set of eyes.</p>

<p>Here's the question:
 Create a loop that will calculate the sum of the multiples of 8 that are between 100 and 500.  Output the sum.</p>

<p>Here's my code</p>

<p>My issue is, when if I say... while ( multiple > 100 &amp;&amp; multiple &lt; 500) my only output is "press any key to continue". If I edit it so say while (multiple &lt; 500) it runs fine but includes the multiples below 100 which I don't need.</p>

<p>I don't understand why it won't let me say  while ( multiple > 100 &amp;&amp; multiple &lt; 500)</p>

<p>Any help would be greatly appreciated.</p>

<pre><code>int number = 8, count = 1, multiple = 0, sum = 0;
while (multiple &lt; 500) {
    multiple = number * count;
    count = ++count;
    printf("Your multiple is: %i \n", multiple);

}

sum = multiple * count;
count = ++count;
printf("Your sum of the multiples are: %i \n", sum);


system("pause");
</code></pre>