a = 4;
b = 5;
c = 6;

if (a<b)
    disp('a is less than b');
else
    if (a < c)
        disp('a is greater than b but less than c');
    else
        disp('a is greater than b and greater than c');
    end
end

if (a == 3)
    disp('three');
elseif (a == 4)
    disp('four');
else
    disp('five');
end

for a = 2:8
    switch a
        case 3
            disp('three');
        case 4
            disp('four');
        case {5,6,7}
            disp('five');
            disp('six or seven');
        otherwise
            disp('???');
            disp('a is unknown value');
    end
end

a = 3;
if ((a < b) && (a < c))
    disp('a less');
else
    disp('a gt');
end



a = 6;
c = 8;
disp(sprintf('a %d  b %d  c %d', a, b, c))
if ((b < a) && (a < c))
    disp('a between b and c');
else
    disp('a outside b and c');
end
