begin
detectgraph(gd,gm);
initgraph(gd,gm,'');
vycisti;
moveto(150,240);
for a:= 1 to 360 do
begin
delay(2);
setcolor(red);
lineto(a+150,-round(sin(0.02*a)*90)+240);
end;
c:=readkey;
vycisti;
moveto(150,150);
for a:= 1 to 360 do
begin
delay(2);
setcolor(blue);
lineto(a+149,-round(cos(0.02*a)*90)+240);
end;
c:=readkey;
vycisti;
moveto(150,150);
for a:= 1 to 360 do
begin
setcolor(green);
delay(2);
lineto(a+149,-round((cos(0.02*a)*90)+(sin(0.02*a)*90))+240);
end;
c:=readkey;
vycisti;
moveto(150,240);
for a:= 1 to 360 do
begin
setcolor(3);
delay(2);
lineto(a+150,-round((sin(0.02*a)*90)/(cos(0.02*a)))+240);
end;
c:=readkey;
vycisti;
moveto(150,0);
for a:= 1 to 360 do
begin
setcolor(5);
delay(2);
lineto(a+150,-round((cos(0.02*a)*90/(sin(0.02*a))))+240);
end;
c:=readkey;
end.