title: Make a Pattern using nested while loop
body: <p>I am new in programming and I struck at this pattern<br/></p>
  
  <pre><code>![Using For loop][1]
  </code></pre>
  
  <p>I want to use nested while loop because with for loop I already made this.
  I cannot obtain the correct output....Here is my code........</p>
  
  <pre><code>int i=1,j=1,n=5,z=1,c=5;
  while(i&lt;=n)
  {
      j=1;
      while(j&lt;=i)
      {
          cout&lt;&lt;"*";
          j++;
      }
      z=5;
      while(z&gt;i)
      {
          cout&lt;&lt;".";
          z--;
      }
      c=1;
      while(c&lt;=i)
      {
          cout&lt;&lt;"+";
          c++;
      }
      cout&lt;&lt;"\n";
      i++;
  }
  </code></pre>