title: Swift 4 need help to make triangle using (*)
body: <p>swift4 to make triangle tree using stars(*) and 
  its need to look a pine tree, I tried with the below code but it is not working as expected.
  Its need to look like equilateral triangle.</p>
  
  <pre><code>var empty = "";
  for loop1 in 1...5
  {
      empty = "";
      for loop2 in 1...loop1
      {
          empty = empty + "*";
      }
  print (empty);
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/liMfX.png" rel="nofollow noreferrer">Now</a>,
  <a href="https://i.stack.imgur.com/LKx4E.png" rel="nofollow noreferrer">Expected</a></p>