uses crt;
var n,i:integer;
a:array[1..100] of integer;
begin
clrscr
write(‘nhap so phan tu cua day:’);readln(n);
for i:=1 to n do
begin
write(‘a[‘,i,’]=’);readln(a[i]);
end;
writeln(‘day so da nhap:’);
for i:=1 to n do write(a[i]:2);
readln;
end.
uses crt;
var a:array[1..100]of integer;
i,n,max:integer;
begin
clrscr;
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
writeln('Day so vua nhap la: ');
for i:=1 to n do
write(a[i]:4);
writeln;
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 i,n,max:integer;
A:array[1..100] of integer;
begin
clrscr;
write('nhap so luong phan tu: ');readln(n);
for i:=1 to n do
begin
write('A[',i,']=');readln(a[i]);
end;
max:=A[1];
for i:=2 to n do
if max<A[i] then max:=a[i];
write('so lon nhat trong day: ',max);
readln;
end.