Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,4 @@
print("Enter a string: ", terminator: "")
if let str = readLine() {
print(str)
}

View file

@ -0,0 +1,10 @@
print("Enter a string: ", terminator: "")
guard let str = readLine() else {
fatalError("Nothing read!")
}
print(str)
print("Enter a number: ", terminator: "")
guard let nstr = readLine(), let num = Int(nstr) else {
fatalError("Not a number!")
}
print(num)