Read a line from the user - Swift | Zoonk
Read a line from the user
Use `readLine()` in a command-line program to wait for the user to type a line of text. Print a prompt before reading, then echo the response so the program visibly reacts to input.
Upgrade to keep learning
This lesson requires an active subscription.
Back to chapter
Upgrade