uses crt;
var n,i,max:integer;
a:array[1..100]of integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
max:=a[1];
for i:=1 to n do
if max<a[i] then max:=a[i];
writeln('So lon nhat la: ',max);
readln;
end.
uses crt;
var n,i,max: longint;
a: array [1..200] of int64;
begin
clrscr;
write('Nhap so phan tu: ');readln(n);
for i:= 1 to n do
begin write('Nhap phan tu thu ',i,': '); readln(a[i]); end;
max:= 0;
for i:= 1 to n do
if max < a[i] then max:= a[i];
write('So lon nhat la: ',max);
readln
end.