You are viewing a single comment's thread. Return to all comments →
An F# solution
open System [<EntryPoint>] let main args = let x = Console.ReadLine() |> int let numbers = Seq.initInfinite (fun _ -> Console.ReadLine()) |> Seq.takeWhile (String.IsNullOrWhiteSpace >> not) |> Seq.filter (fun v -> v |> int < x) |> Seq.iter (printf "%s\n") 0
Seems like cookies are disabled on this browser, please enable them to open this website
Filter Array
You are viewing a single comment's thread. Return to all comments →
An F# solution