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