macintosh_cookbook/examples/rings.pas
2020-05-07 18:47:11 +09:00

24 lines
379 B
ObjectPascal

program ExampleRings;
var
Top, Left, Bottom, Right: Integer;
Diam, Increase: Integer;
Box: Rect;
begin
Top := 0;
Left := 0;
Diam := 0;
Write('Type an integer between 1 and 25: ');
Read(Increase);
ShowDrawing;
repeat
Diam := Diam + Increase;
Bottom := Diam;
Right := Diam;
SetRect(box, Left, Top, Right, Bottom);
FrameOval(box);
until Diam > 400
end.