a=5;b=20;if(a&&b)disp('Line1-Conditionistrue');
end
if ( a || b )
disp('Line2-Conditionistrue');
end
% lets change the value of a and b
a = 0;
b = 10;
if ( a && b )
disp('Line3-Conditionistrue');
else
disp('Line3-Conditionisnottrue');
end
if (~(a && b))
disp('Line4-Conditionistrue');
end