function result=recursiveFn(x)
% usage: recursiveFn(num) where num is a positive integer
% This function computes the factorial of any positive integer

if (x<=0)
    result=1;
else
    result=x*recursiveFn(x-1);
end

end