Program HOC24;
var i,n: integer;
x: array[1..1000] of real;
tbc: real;
begin
write('Nhap n: '); readln(n);
for i:=1 to n do
begin
write('x[',i,']='); readln(x[i]);
end;
tbc:=0;
for i:=1 to n do tbc:=tbc+x[i];
tbc:=tbc/n;
write('Trung binh cong la: ',tbc:6:2);
readln
end.