N = 5;
x = 1;
for i = 2:N
    x = x*i;
end
x
