Given natural numbers n and k, compute the value of the binomial coefficient:
C(n, k) = n! / (k! × (n − k)!)
Two integers n and k (1 ≤ n, k ≤ 10).
Print the value of C(n, k).
| input | output |
|---|---|
| 2 | |
| 1 | 2 |
Sign in to submit your solution and save your progress.