program RectangleCenter;
uses
Types;
var
Rectt: TRect;
Center: TPoint;
begin
// Define the rectangle using its corners (x1, y1, x2, y2)
Rectt := Rect(10, 20, 110, 70);
// Calculate the center point of the rectangle
Center := CenterPoint(Rectt);
WriteLn('Center of the rectangle: (', Center.X, ', ', Center.Y, ')');
end.
(*
run:
Center of the rectangle: (60, 45)
*)