Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let rec fact x =
- match x with
- | 0 -> 1
- | _ -> x * fact (x - 1)
- let combination M N =
- fact M / (fact N*(fact (M-N)))
- let a = combination 4 2
- printf "%A" ("Число сочетаний=")
- printfn "%A\n" (a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement