Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in [1..6] do
- let printMsg =
- match i with
- | 0 -> "Good job, Eat Healthy food."
- | 1 -> "One cookie won't hurt you."
- | 2 -> "Two cookies are a nice snack."
- | n when n > 2 -> n.ToString() + " cookies are way to many!"
- | _ -> failwith("Number out of expected range!")
- printfn "%s" printMsg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement