Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
0 people like it. Like the snippet!
Smallest divisible number between 1 to any number.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
let maxDiv = 20 let mutable num = 1 let chkDiv num = seq {1..maxDiv} |> Seq.forall (fun x -> num % x = 0) while not <| (chkDiv num) do num <- num + 1 printfn "Number Found : %d" num