title: How to make out Reverse triangle and pyramid in Ruby using for loop?
body: <p>I want to print triangle &amp; pyramid <code>&quot;*&quot;</code> using for loop.</p>
  <blockquote>
  <p>can somebody help me on this?</p>
  </blockquote>
  <p>Output like :</p>
  <pre><code>*****
  ****
  ***
  **
  *
  </code></pre>
  <p>and</p>
  <pre><code>    *
     **
    ***
   ****
  *****
  </code></pre>