title: vbscript code for pattern design
body: <p>can anyone help me with a vb code that i'm struggling to do. I'm just a novice when it comes to programming.</p>
  
  <p>Exercise says:
  Get an integer n from a user, print out the following pattern on the screen depending on user input
  Pattern 1 - when n is 3, there are 5 rows in total
  pattern 2 - when n is 4, there are 7 rows in total</p>
  
  <p>In the output pattern 1 should look like this</p>
  
  <pre><code>  *
   ***
  *****
   ***
    *
  </code></pre>