If I have to calculate 10C4(i.e. nchoosek(10,4)),10C3,10C2,10C1, Can I calculate all these four values using one command?

.e.g. in case of factorial If I have to calculate 1! 2! 3! 4! 5!, My command will be n=1:5 followed by factorial(n), which gives required factorials in one command.But in case of combination nchoosek(n,k) does not work the same way.It  gives single answer for single values of n and k.If anyone has an alternative solution to my problem, kindly guide me

.In short, I want to calculate more than one combination using single code or single program or single command as in case of factorial above.

More Shakeel Ahmed Khan's questions See All
Similar questions and discussions