program exp;
Uses crt,Graph;
var x1,y1,y,x,Device,Mode,gd :integer;
begin
Device:=0;
Gd:= Detect;
InitGraph (Device,Mode,'c:\bp\bgi');
Readln;
y:=110;
x:=40;
y1:=400;
x1:=230;
repeat
repeat
Repeat
Repeat
Setcolor(White);
Circle(x,110,14);
delay(5000);
Setcolor(Black);
Circle(x,110,14);
delay(1000);
x:=x+2;
until x>130;
Setcolor(4);
Circle(x1,y1,5);
Setcolor(Black);
delay(5000);
Circle(x1,y1,5);
delay(2000);
x1:=x1+1;
y1:=y1-3;
until y1<110;
delay(1000);
until x>230;
until keypressed;
end.
Сообщение отредактировано: armoured -