Skip to content

Instantly share code, notes, and snippets.

@MehdiK
Created May 5, 2014 18:31
Show Gist options
  • Save MehdiK/dc6354e3a06e17b59dff to your computer and use it in GitHub Desktop.
Save MehdiK/dc6354e3a06e17b59dff to your computer and use it in GitHub Desktop.
a program which accepts numbers as arguments and which determines the lowest and highest number
open System
[<EntryPoint>]
let main(args) =
let numArgs = Array.map (fun arg -> int32(arg)) args
printfn "Read %d numbers" args.Length
printfn "Min value %d" (Array.min numArgs)
printfn "Max value %d" (Array.max numArgs)
Console.ReadLine() |> ignore
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment