uses crt;
var n,i,j:word;
a:array[1..100] of longint;
tb:real;
begin
clrscr;
write('n = ');readln(n);
for i:=1 to n do read(a[i ]);
readln;
for i:=1 to n-1 do
begin
tb:=0;
for j:=i+1 to n do
begin
tb:=(a[ i]+a[j ])/2;
if round(tb)=tb then writeln(round(tb))
else writeln(tb:1:1);
end;
end;
readln;
end.
chúc bạn học tốt!!!



hay nhớ tick