title: Printing a specific pattern in C Programming using for loops
body: <p>Hi I need some help figuring out how to write this pattern program.  The console asks for a number of rows and prints out an ascending triangle made out of stars where each proceeding line has two more stars than the previous one, then a descending triangle where each proceeding line has two less stars than the previous one.  That probably wasn't the best explanation but here is an example of what I essentially need to get:</p>
  
  <p>Enter number of rows: 6</p>
  
  <pre><code>*
  ***
  *****
  *****
  ***
  *
  </code></pre>
  
  <p>Another example with odd number:</p>
  
  <p>Enter number of rows: 7</p>
  
  <pre><code>*
  ***
  *****
  *******
  *****
  ***
  *
  </code></pre>
  
  <p>I've been looking for this specific example on forums but I've yet to find it</p>