[Solved] Java return command [closed]


Observe the difference between parameters and arguments:

return factorial(n) / (factorial(k) * factorial(n-k));

Here the first n is an argument – a value passed to the function being called.

private int factorial(int n)

Here n is a parameter – a placeholder to use in defining what the function should do when being called with an argument. What use would it be to pass an argument if you had no way to express what the function should do with this argument ?

1

solved Java return command [closed]