function fac = getFacFor(n)
    fac = 1;
    for i = 2:n
        fac = fac*i;
    end
end