Автор - clay1364
PasclaABC.NET
begin
var a := ReadSeqIntegerWhile('Введите числа:',x -> x = 0).ToArray;
var check := 0;
foreach x: integer in a do begin
if (x < 80) and (x > 9) then
check +=1;
if (a.Count > 1000) and (x > 3000) then
exit;
end;
if check = 0 then
exit;
a.Where(x -> (x < 80) and (x > 9)).Max.Print
end.