Star staircase confusion
<p>OK I'm embarrassed I have to ask this but I'm stuck so here we go, please nudge me in the right direction.
We need to create this using a nested loop:</p>

<pre><code>*
**
***
****
*****
</code></pre>

<p>Here's what I came up with.</p>

<pre><code>int row,col; 
for(row = 5; row &gt;= 1; row--)
{ 
    for (col = 0; col &lt; 5 - row; col++)
        println("");

    for(col = 5; col &gt;= row; col--)
        print("*");
}
</code></pre>

<p>It ALMOST works but it prints spaces between each row and I cannot for the life of me figure out why.</p>
