function fac = factorial3(n)
% Computes n!
% Uses a while-loop
fac = n;
i = n-1;
while i>1
    fac = fac*i;
    i = i-1;
end
