% this script sets f to be n!, for whatever value n currently has
f=1;
for k = 1:n
  	f=f*k
	pause
end
