mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 21:48:01 +02:00
20 lines
263 B
ObjectPascal
20 lines
263 B
ObjectPascal
var
|
|
b1, b2, b3: longbool;
|
|
begin
|
|
b1:=longbool(1);
|
|
b2:=longbool(2);
|
|
b3:=b1 and b2;
|
|
if not b3 then
|
|
halt(1);
|
|
b3:=b1 xor b2;
|
|
if b3 then
|
|
halt(2);
|
|
{$b+}
|
|
b3:=b1 and b2;
|
|
if not b3 then
|
|
halt(3);
|
|
b3:=b1 xor b2;
|
|
if b3 then
|
|
halt(4);
|
|
end.
|