+ 6
How to get input in Swift 4 ?
Hi guys, give me my answer.
1 Answer
+ 2
You can use readLine, from the Swift Standard Library.
let response = readLine()
print("Your response is \(response!).")
for more information you can read this article
http://keitaito.com/blog/2017/01/27/how-to-read-standard-input-in-swift.html