pascalabcnet/TestSuite/sokrbool1.pas
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

15 lines
246 B
ObjectPascal

var a : integer;
begin
if true then
a := 2
else
a := 1;
assert(a=2);
if (a = 2) or (a = 0) then a := 3;
assert(a=3);
if (a=3) and (a=2) then a := 4;
assert(a=3);
if not (a=1) and not (a=2) then a := 5;
assert(a=5);
end.