var
a:array [1..20] of integer;
i,max:integer;
begin
max:=0;
for i:=1 to 20 do
if i mod 2=0 then a[i]:=random(50)+50
else a[i]:=random(50)+150;
if a[i]>max then max:=a[i];
write(a[i]:4);
end;
writeln;
writeln('max=',max);
end.
var
a:array [1..20] of integer;
i,max:integer;
begin
max:=0;
for i:=1 to 20 do
begin
if i mod 2=0 then a[i]:=random(50)+50
else a[i]:=random(50)+150;
if a[i]>max then max:=a[i];
write(a[i]:4);
end;
writeln;
writeln('max=',max);
end.