how to accept data from user in swift code example
Example: how to take input from user in xcode
print("Please Enter your favorite programming language", terminator: ".")
let name = readLine()
print("Your favorite programming language is \(name!).")