// PascalABC.NET
begin
var k := 30;
var a := ArrRandom(k, 0, 50);
a := a.SortedDescending.ToArray;
a.Println;
var i := 0;
while (i <= k - 1) and (a[i] >= 33) do
if a[i] = 33 then
break;
i += 1;
end;
Print('33 есть')
else
Print('33 нет')
end.
// PascalABC.NET
begin
var k := 30;
var a := ArrRandom(k, 0, 50);
a := a.SortedDescending.ToArray;
a.Println;
var i := 0;
while (i <= k - 1) and (a[i] >= 33) do
begin
if a[i] = 33 then
break;
i += 1;
end;
if a[i] = 33 then
Print('33 есть')
else
Print('33 нет')
end.