Значения в таблице принимают значения истина(True) и ложь(False).
//Pascal var A, B, C: boolean; begin write(' A B C '); writeln(' A&B ⌐A ⌐A&C F'); for A := false to true do for B := false to true do for C := false to true do writeln(a:7, b:7, c:7,(A and B):7, not(A):7, (not(A)and C):7,(not(A and B)or(not(A) and C)):7); end.
Const n=4; m=5; var a:array [1..n,1..m] of integer; i,j,min,imin,jmin:integer; begin Randomize; Writeln('Исходный массив:'); for i:=1 to n do begin for j:=1 to m do begin a[i,j]:=random(21)-10; write(a[i,j]:6); end; writeln; end; min:=a[1,1]; imin:=1;jmin:=1; for i:=1 to n do for j:=1 to m do if a[i,j]<min then begin min:=a[i,j]; imin:=i; jmin:=j; end; writeln('min=a[',imin,',',jmin,']=',min); end.
//Pascal
var A, B, C: boolean;
begin
write(' A B C ');
writeln(' A&B ⌐A ⌐A&C F');
for A := false to true do
for B := false to true do
for C := false to true do
writeln(a:7, b:7, c:7,(A and B):7, not(A):7,
(not(A)and C):7,(not(A and B)or(not(A) and C)):7);
end.