0
How can I read input from keyboard with Swift 4?
It's not in the Swift course. I tried this way, but... Gives this error. I don't know if it's only for Mac and IOS development. https://code.sololearn.com/cdJ4o028L89e/?ref=app
1 Answer
+ 6
var message = readLine()!
print(message)
https://www.sololearn.com/Discuss/1457999/?ref=app
https://www.sololearn.com/Discuss/2493372/?ref=app