Created
May 5, 2014 18:31
-
-
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
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 | |
[<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