Код
uses graph;
var gd,gm,i,k:integer;
begin
gd:=detect;
Initgraph(gd,gm,'');
k:=0
for i :=1 to 9 do
begin
setcolor(3);
ink(k,38);
rectangle(38,38,k,76);
end;
for i :=1 to 9 do
begin
setcolor(3);
ink(k,38);
rectangle(38,76,k,114);
end;
readln;
closegraph
end.