+ 2
Swift Input and output
Can someone teach me input and output in swift??
1 ответ
+ 5
For reading integers:
let i = Int(readLine()!)!
For reading strings:
let s = readLine()!
Output:
https://developer.apple.com/documentation/swift/1541053-print