/* C program to draw a line. */
In order to generate a line we need to know cordinates of two points of the line. In graphics we have inbuilt line function which accepts four parameter. line(x1,y1,x2,y2) where x1 and y2 are the x,y cordinate of first point and x2, y2 are x,y cordinate of second points.
Written with ♥ from Mangesh.