main() { int gd=DETECT,gm; initgraph(&gd,&gm,"c:\\TC\\bgi");
int x,y,x1,y1,x2,y2,dx,dy,i=1; cout<<"Enter the value for x1"; cin>>x1; cout<<"Enter the value for y1"; cin>>y1; cout<<"Enter the value for x2"; cin>>x2; cout<<"Enter the value for y2"; cin>>y2;