I am trying to add two numbers to Swift and print its sum
import Foundation func solveMefirst(firstNo: Int , secondNo: Int) -> 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)
But, unfortunately, this error appears and stops execution on the playground.
Execution was interrupted, reason: EXC_BAD_INSTRUCTION (Code=EXC_l386_INVOP, subcode=0x0).

I could not understand what was wrong with that?
UPDATE
Also explain how to run this command line program on the playground?
How can I accept input on the playground?
source share