var a:array[1..10] of integer;var i:integer;begin for i:=1 to 10 do a[i]:=sqr(3*i); for i:=1 to 10 do write(a[i],' '); writeln; writeln(a[1],' ', a[10]); readln;end.
var a:array[1..10] of integer;
var i:integer;
begin
for i:=1 to 10 do a[i]:=sqr(3*i);
for i:=1 to 10 do write(a[i],' ');
writeln;
writeln(a[1],' ', a[10]);
readln;
end.