Print a star (*) right triangle in C#
<p>I have already done this with a nested for loop but, I also want to know how to do this with a while loop. I already have this </p>

<pre><code> int j = 10;
     int k = 0;
     while (j &gt; 0)
     {
        if (k &lt;= j)
        {
           Console.Write("* ");
           Console.WriteLine();
        }
        j--;
     } Console.WriteLine();
</code></pre>

<p>and it prints out a line of stars(*). I know the inner loop has to refer to the outer loop but I'm not sure how to do this in a while statement.</p>
