[Solved] What SHOULD happen if a negative value is passed to a method that returns the factorial of the value passed to it? [closed]


If you mean what should happen, this is what it should return

Mathematically the factorial function is also defined as gamma(n+1)=n!,

there is also these relations n*gamma(n)=gamma(n+1) and gamma(1/2)=sqrt(pi)

Using these you can get the factorial for any non-integral negative number

for more information see this

solved What SHOULD happen if a negative value is passed to a method that returns the factorial of the value passed to it? [closed]