Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created May 19, 2019 00:35
Embed
What would you like to do?
Command Line Tool with input and output
import Foundation
print("Whatever you say is repeated")
var inputString = String()
while inputString != "quit"
{
inputString = readLine()!
print("You said: \(inputString)")
}
print("The program has ended")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment