Create an algorithm in MATLAB that calculate the combination for the given positive integers n and k as inputs. When k > n, the result is 0. The formula of the combination, for n >= k, can be seen below:
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers66
Suggested Problems
-
Number of 1s in the Binary Representation of a Number
489 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
605 Solvers
-
347 Solvers
-
232 Solvers
-
6643 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!