function f=factoriter(n) f=1 for i=2:n f=f*i end endfunction