title: NESTED FOR LOOP - Swift 2
body: <p>I have no coding experience other than this book</p>
  
  <p>Programming Swift! Swift 2 Kindle Edition
  by Nick Smith (Author)</p>
  
  <p>I am currently at Chapter</p>
  
  <p>5.3 Nested FOR LOOPS</p>
  
  <p>//  NESTED FOR LOOP #2</p>
  
  <p>This code -</p>
  
  <pre><code>for var a = 0; a &lt; 11; a++ {
      print("")
  
      for var b = 0; b &lt; a; b++ {
          print("*", terminator: " ")
  
      }
  
  }
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/InmWp.jpg" rel="nofollow">GENERATES THIS PATTERN...</a></p>
  
  <p>Now [after several/ 4 hours 'odd'] I SIMPLY CAN'T WORK OUT <a href="http://i.stack.imgur.com/r2WRB.jpg" rel="nofollow">HOW TO CHANGE THE ABOVE 'simple' [if you know how] CODE TO GENERATE THIS PATTERN??</a></p>
  
  <p>I (think I) can see Outer and Inner loops I just can't work out the rest!?? I have tried every variation I can think of!?? (and am aware that just doing 'permutations' doesn't mean I have true understanding of what I am trying to do!...)</p>
  
  <p>Tried using --operators and changing [most/ all] values [but 'permutations' is a limited method] </p>
  
  <p>I feel like a total fool but figure if it's the very first time I've seen this stuff maybe it's not so bad, these things take learning!??</p>
  
  <p>Help (the answer LOL) would be GREATLY appreciated   </p>