NCR problem , can’t understand the function parameters and their name

Why did we not make 3 functions in ncr problem?
One for n
One for r
One for n-r
Also tell me it is not necessary to have the same name of parameters in functions which declared in main.

@rishabhsinghrajput1971_017ffc8383d309dc,
we don’t need to have different function as the work is same you can call the same function with different values.
yes its not necessary.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.