/* Program to draw Line */
#include<stdio.h>#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int x,y,r;
initgraph(&gd,&gm,"c:\\turboc3\\");
x=getmaxx()/2;
y=getmaxy()/2;
line(x-50,y-50,x+50,y+50);
putpixel(x,y,YELLOW);
getch();
//closegraph();
}