Algoritma Rekursif Method
function faktorial(x)
{
if (x == 1 || x == 0)
{ return 1; }
else
{ return x * faktorial( x - 1 ); }
}