You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

a) 

function result = wholeNumber(tallA)
	result = (tallA == round(tallA));
end

b) 

 

function result = evenNumber(tallA)
	result = (wholeNumber(tallA/2));
	% eller
	result = (mod(tallA,2) == 0);
end


 

  • No labels