program ct;
uses crt;
var A:array[1..100] of integer;
i,n,m:integer;
T:longint;
begin clrscr;
write('Nhap so phan tu n: '); readln(n);
for i:=1 to n do
begin
write('Nhap phan tu thu ',i,': '); readln(A[i]);
end;
for i:=1 to n do
if i=n then m:=A[i];
T:=A[1]*m;
writeln('Tich la: ',T);
readln;
end.
Học tốt!