title: How to make tri angle with blank inside using c++?
body: <p>I did try many modifications to my code to make like this, but i not get what i want :</p>
  
  <p>example if i put 7 in variable N the result will show</p>
  
  <pre><code>*
  **
  * *
  *  *
  *   *
  *    *
  *******
  </code></pre>
  
  <p>this my code</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()  {
      for (int x=1; x&lt;=N; x++){
          cout&lt;&lt;"*";
          for (int y=1; y&lt;x; y++){
              cout&lt;&lt;"*";
          }
          cout&lt;&lt;"\n";
      }
      return 0;
  }
  </code></pre>
  
  <p>what i must add to my code have to the result like above?</p>