uses CRT, GraphABC; procedure Draw(x, y, l, u : Real; t : Integer); procedure Draw2(Var x, y: Real; l, u : Real; t : Integer); begin Draw(x, y, l, u, t); x := x + l*cos(u); y := y - l*sin(u); end; begin if t > 0 then begin l := l*0.5; Draw2(x, y, l, u, t-1); Draw2(x, y, l*0.8, u+pi/2, t-1); Draw2(x, y, l*0.8, u-pi/2, t-1); Draw2(x, y, l, u, t-1) end else Line(Round(x), Round(y), Round(x+cos(u)*l), Round(y-sin(u)*l)) end; begin SetWindowCaption('Фракталы: Ледяной фрактал 1'); SetWindowSize(420,420); Draw(410, 10, 400, -pi, 5); Draw(10, 410, 400, 0, 5); Draw(10, 10, 400, -pi/2, 5); Draw(410, 410, 400, pi/2, 5); ReadKey end.