function fac = factorial2(n)
% Computes n!
% Uses a for-loop
fac = 1;
for i=2:n
    fac = fac*i;
end
