for loop understanding
<p>I'm not sure about how does for loop works can anyone explain it briefly to me?</p>

<p>For instance this code:</p>

<pre><code>int count;

for(count=1;count &lt;10; count = count+2)
System.out.print((3*count) + " " );
</code></pre>

<p>The answers are: <code>3 9 15 21 27</code>, but from where did the <code>9</code> come from?</p>

<p>Let's assume that the first count is executed so <code>1+2=3</code>, so <code>3*</code>1 = <code>3</code>.</p>

<p>Now aren't we suppose to take the <code>3</code> and sum it with the <code>2</code> and then multiply it by the 
<code>3</code>?</p>

<p><code>5*3 = 15</code>, so where did the <code>9</code> come from?</p>
