Equation of straight line passing through a given point which bisects it into two equal line segments | C ++ implementation of the approach ; Function to print the equation of the required line ; Driver code
#include <iostream> NEW_LINE using namespace std ; void line ( double x0 , double y0 ) { double c = 2 * y0 * x0 ; cout << y0 << " x " << " ▁ + ▁ " << x0 << " y ▁ = ▁ " << c ; } int main ( ) { double x0 = 4 , y0 = 3 ; line ( x0 , y0 ) ; return 0 ; }