var a: array [1..10] of integer;
var i,s: integer;
begin
randomize();
for i:=1 to 10 do
a[i]:=random(10);
write(a[i],' ');
end;
writeln();
for i:=1 to 8 do
s:=a[i]+a[i+1]+a[i+2];
writeln('a[',i,']+a[',i+1,']+a[',i+2,'] = ',s);
end.
var a: array [1..10] of integer;
var i,s: integer;
begin
randomize();
for i:=1 to 10 do
begin
a[i]:=random(10);
write(a[i],' ');
end;
writeln();
for i:=1 to 8 do
begin
s:=a[i]+a[i+1]+a[i+2];
writeln('a[',i,']+a[',i+1,']+a[',i+2,'] = ',s);
end;
end.