%example of cycle if
clear;
N=input('Type an integer number N\n'); %\n is needed to display N in
% a new line
M=input('Type another integer M you want to compare N to\n');
if N==M %we need double equal sign when we compare
    answer='N equals M';
elseif N>M
    answer='N is bigger than M';
elseif N<M
    answer='N is smaller than M';
end
answer %if we do not put a semicolumn at the end of a line MATLAB dispays it