Question: PLEASE USE C++ AND MAKE SURE THE PROGRAM DOES EXACTLY WHAT IS ASKED IN QUESTION. THANKS If I have n objects and I wish to

PLEASE USE C++ AND MAKE SURE THE PROGRAM DOES EXACTLY WHAT IS ASKED IN QUESTION. THANKS
If I have n objects and I wish to choose k objects from those n, there are n n(n-1)..(n-k+1 k! ways to do it. This is referred to as "n choose k". Write a function, n_choose_k, that takes two integer arguments and returns an integer. Your function must check that n2k and must return -1 and print an error message (using cout) if that is not the case
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
