Last active
December 28, 2015 18:28
-
-
Save bmaland/7542840 to your computer and use it in GitHub Desktop.
Solution in F# for http://www.spoj.com/problems/TEST/
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
open System | |
let rec readUntilDone input = | |
match input with | |
| "42" -> 0 | |
|_ -> Console.WriteLine(input) | |
readUntilDone(Console.ReadLine()) | |
[<EntryPoint>] | |
let main args = | |
readUntilDone(Console.ReadLine()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment