I think i found what is the problem.You are likely to get a stackOverFlowError.Why?
Because of a call of factorial with a negative number.Here is the call
int fnr=factorial(n-r);//n-r=4-2=-2
So...
Type: Posts; User: Samaras
I think i found what is the problem.You are likely to get a stackOverFlowError.Why?
Because of a call of factorial with a negative number.Here is the call
int fnr=factorial(n-r);//n-r=4-2=-2
So...
Please post the the first errors that appear :)