clear;clc
x=-10:2:10;
disp('     if    i    x');
for i = 1:11
    if (x(i)>5 | x(i)<-5)
        disp([1 i x(i)]);
    end
    if (x(i)>5 & ~(i==9))
        disp([2 i x(i)]);
    end
    if (x(i)>5 & (i~=9))
        disp([3 i x(i)]);
    end
end