1) с for
var N,i:integer;
res,max:real;
begin
readln(N);
readln(res);
max:=res;
for i:= 1 to N-1 do
begin
readln(res);
if resmax:=res;
end;
writeln(max);
end.
2) с while
var N,i:integer;
res,max:real;
begin
readln(N);
readln(res);
max:=res;
while i <>N-1 do
begin
readln(res);
if resmax:=res;
i:=i+1;
end;
writeln(max);
end.