function ff=myfact( n )
%UNTITLED3 Summary of this function goes here
%   Detailed explanation goes here
if n==0||n==1 
ff=1;
return
elseif n<0
disp('argument is negativ');
return
end
ff=1;
for i=1:n 
ff=ff*i;
end
return
end
