You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
352 B

import Foundation
/// Console reader of the app
public class ConsoleRead : Readable {
/// Read and return an integer value
public func readInt() -> Int {
print("Choose column :")
if let input = readLine() {
if let number = Int(input) {
return number
}
}
return 0
}
}