uses crt;
const fi='ketqua.txt';
var f1:text;
n,i,t:integer;
a:array[1..100]of integer;
begin
clrscr;
assign(f1,fi); rewrite(f1);
write('nhap n='); readln(n);
for i:=1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
t:=0;
for i:=1 to n do
t:=t+a[i];
writeln(f1,' Trung binh cong cua day so la: ',t/n:4:2);
close(f1);
readln;
end.