Algorithm to Find Factorial of a Number using Recursion

Algorithm fnFact(n)
{
if(n<0)
return -1;
if(n==1 || n==0)
return 1;
else
return (n*fnFact(n-1));
} // End of Algorithm