Explains you how to use the readLine function in Swift.
let input = readLine()
if let input = input {
print(input) //Input will be printed out
}
let input = Int(readLine()!)
if let input = input {
print(input) //Input integer will be printed out.
}
let input = String(readLine()!)
if let input = input {
print(input) //Input Stirng will be printed out.
}
let input = readLine()
if let input = input {
let numbersFromKeyboard = input.split(separator: " ")
let numbers = numbersFromKeyboard.map { Int(String($0))! }
print(numbers)
}