title: Printing a row of asterisks
body: <p>I am writing a program in c++ where I must print an n number of asterisk rows in increments of n+1. Basically the flow of the program must run like this:</p>
  
  <p>1 *</p>
  
  <p>2 <strong><em>*</em>**</strong></p>
  
  <p>3 <strong><em>*</em>***</strong></p>
  
  <p>My program right now only prints out an ordered row of asterisks</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      int x = 0, y = 0;
      char s = '*';
  
      cout &lt;&lt; "Input x" &lt;&lt; endl;
      cin &gt;&gt; x;
      cout &lt;&lt; "Input y" &lt;&lt; endl;
      cin &gt;&gt; y;
      cout &lt;&lt; endl;
      for (int i = x; i &lt;= y; i++)
      {
          cout &lt;&lt; i&lt;&lt;"# ";
          for (int j = 1; j &lt;= i; j++)
          {
              cout &lt;&lt; s;
          }
          cout &lt;&lt; endl;
      }
      system("PAUSE");
      return 0;
  }
  </code></pre>
  
  <p>Can anyone help me figure out how to make this program print asterisks in n+1 order?</p>