void main()
{
int gdriver = DETET,gmode;
intgraph(&gdriver,&gmode,"c:\\tc")
cleardevice();
printf("\n to draw lines with function 'line;.");
line(160,120,360);
line(300,480,250);
getch();
cleardevice();
print("\n to draw lines with function 'lineto'.");
moveto (160,120);
lineto (300,360);
lineto(480,250);
getch();
cleardevice();
printf("\n to draw lines with function 'line1'.");
moveto (160,120);
lineto (300,360);
lineto(480,250);
getch();
closegraph();
}