title: Swift Addition: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (Code=EXC_l386_INVOP, subcode=0x0)
body: <p>I'm trying to add two numbers in Swift and print its sum </p>
  
  <pre><code>import Foundation
  
  func solveMefirst(firstNo: Int , secondNo: Int) -&gt; Int {
      return firstNo + secondNo
  }
  
  let num1 = readLine()
  let num2 = readLine()
  
  var IntNum1 = Int(num1!) ** Execution was interrupted, reason: EXC_BAD_INSTRUCTION (Code=EXC_l386_INVOP, subcode=0x0). **
  var IntNum2 = Int(num2!)
  
  let sum = solveMefirst(IntNum1!, secondNo: IntNum2!)
  print(sum)
  </code></pre>
  
  <p>But unfortunately this error comes out and stops the execution in playground.</p>
  
  <pre><code>Execution was interrupted, reason: EXC_BAD_INSTRUCTION (Code=EXC_l386_INVOP, subcode=0x0).
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/S8o2A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S8o2A.png" alt="enter image description here"></a></p>
  
  <p>Could not understand, what is wrong in this?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Also please explain how to run this command line program in playground?</p>
  
  <p>How can I take input from playground??.</p>