B1 gán max=a[1];
B2 xét nếu max<a[i] thì gán max=a[i];
B3 inkeets quả ra màn hình
uses crt;
var cao:array[1..100]of real;
max:real;
i,n:integer;
begin
clrscr;
write('Nhap so ban:'); readln(n);
for i:=1 to n do
begin
write('Nhap chieu cao cua ban thu ',i,':'); readln(a[i]);
end;
max:=a[1];
for i:=1 to n do
if max<a[i] then max:=a[i];
writeln(max);
readln;
end.