function res = factorialrecursive(n)
if n == 1
   res = 1;%! Base Case: $1! = 1$.
else
   res = n*factorialrecursive(n-1);%! Simplification and Delegation
end
