% test while loop
%
M = 7;
N = 3;

while M ~= N
    disp([M, N])
    M = M-1;
end