Documente Academic
Documente Profesional
Documente Cultură
end.
Program ex3;
type numere=1..20;
multime=set of numere;
var A,B,C:multime;
begin
A:=[1,3,7]; B:=[1,3]; C:=[1,7,3];
(* A={1,3,7} B={1,3} C={1,7,3} *)
if A<=B then writeln(A inclusa in B); {se verific dac AB}
if A>=B then writeln(A include pe B); {se verific dac AB}
if A<>B then writeln(A <> B)
{se verific dac A<>B}
else writeln(A =B);
if A=C then writeln(A=C)
{se verific dac A=B}
else writeln(A<>C)
end.