Command Line Tool with input and output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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