program MaxTwoDigitNumber;
varn, i, num, maxTwoDigit: integer;
beginwriteln('Enter the number of elements:');readln(n);
maxTwoDigit := -1;
writeln('Enter ', n, ' numbers:');for i := 1 to n dobeginreadln(num);
end;
if maxTwoDigit <> -1 thenwriteln('The maximum two-digit number is: ', maxTwoDigit)elsewriteln('There are no two-digit numbers');end.
program MaxTwoDigitNumber;
var
n, i, num, maxTwoDigit: integer;
begin
writeln('Enter the number of elements:');
readln(n);
maxTwoDigit := -1;
writeln('Enter ', n, ' numbers:');
if (num >= 10) and (num <= 99) thenfor i := 1 to n do
begin
readln(num);
begin
if num > maxTwoDigit then
maxTwoDigit := num;
end;
end;
if maxTwoDigit <> -1 then
writeln('The maximum two-digit number is: ', maxTwoDigit)
else
writeln('There are no two-digit numbers');
end.