+ 2

Swift Input and output

Can someone teach me input and output in swift??

2nd Mar 2020, 6:00 AM
Vayun
Vayun - avatar
1 Answer
+ 5
For reading integers: let i = Int(readLine()!)! For reading strings: let s = readLine()! Output: https://developer.apple.com/documentation/swift/1541053-print
2nd Mar 2020, 6:19 AM
Mihai Apostol
Mihai Apostol - avatar