title: Multiplication table in Swift ios
body: <p>I am learning how to make a multiplication table in swift and used </p>
  
  <pre><code>override func viewDidLoad() {
      let n = Int(str)!
  
      while (i&lt;=10) {
  
  
         let st = "\(n) * \(i) = \(n * i)"
         lbl.text = st
  
          i += 1
  
      }
  </code></pre>
  
  <p>this code. i have a label in which i want to show the table, but the problem is that only the last result which is say 2*10 = 20 is showing and not all the other value. i am confused what to do, please help what to do so that all the values are displayed.</p>