Equation of straight line passing through a given point which bisects it into two equal line segments | Function to prvar the equation of the required line ; Driver code
function line ( x0 , y0 ) { var c = parseInt ( 2 * y0 * x0 ) ; document . write ( y0 + " " + " " + x0 + " " + c ) ; } var x0 = 4 , y0 = 3 ; line ( x0 , y0 ) ;