Language: 
Русский
English
  {Rectangl.PAS}
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
 {Sample code for the Rectangle procedure.}
uses Crt, Graph;
 var
   GraphDriver, GraphMode: Integer;
   X1, Y1, X2, Y2: Integer;
 begin
   GraphDriver := Detect;
   InitGraph(GraphDriver, GraphMode, '');
   if GraphResult<> grOk then
     Halt(1);
   Randomize;
   repeat
     X1 := Random(GetMaxX);
     Y1 := Random(GetMaxY);
     X2 := Random(GetMaxX - X1) + X1;
     Y2 := Random(GetMaxY - Y1) + Y1;
     Rectangle(X1, Y1, X2, Y2);
   until KeyPressed;
   CloseGraph;
 end.

 Правила форума
Правила форума 
  Rectangl.PAS
 Rectangl.PAS
 ::
 ::
       ::
 ::
       ::
 ::
       
     